crystal examples checker
- create
crystal-examples
command
shards update
make
- prepare a path of crystal src as
./crystal
like this.
ln -s /opt/crystal .
- prepare docker image when you want to run spec in docker.
docker pull jhass/crystal-build-x86_64
Found 1233 examples
- examples/ # extracted example files (1 example has 1 file)
- gen/spec/ # converted into spec file (1 class has 1 file)
- doc/compile/ok # OK logs
- doc/compile/ng # NG logs
- doc/compile/pending # pending logs
- doc/compile/cache # Delete this to re-compile all
- doc/spec/log # last result
- doc/spec/cache # Delete this to re-spec all
- pendings/ # Pseudo codes or some stuff can be ignored by putting them here. (managed by SHA1)
- gen/skip/ # These files are skipped for spec execution.
Generated crystal codes in examples
and gen/spec
may destroy your server.
Please be careful and check the code before run.
- executes unit tests about this application itself
- executes generated spec files filtered by
gen/skip
in current host.
- executes same as
generated_spec
except running in docker containers. (needs docker image: seeDOCKER_IMAGE
in Makefile)
- shows statistics about the examples.
Specs 126 (102 successes, 4 failures, 20 pending)
Examples 1190 (994 successes, 9 failures, 187 pending)
- doc/spec/fixtures # fixture data (used for
comment-spec.cr
)
to_s
should escape @ to %40 ?
- wrong usage
- crystal-lang/crystal#3807
- What happen when
gets_to_end
is called twice?
- casting Int32 to Int64
- almost using macros
- creates real connections
- casting Int32 to Int64
- Fork it ( https://github.com/maiha/crystal-examples/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
- maiha maiha - creator, maintainer