Added expect_raises macros and use them in specs. Also make...
Added expect_raises macros and use them in specs. Also make assert_syntax_error create a spec with "it" (more concise)
Showing
- spec/compiler/lexer/lexer_spec.cr 21 additions, 58 deletionsspec/compiler/lexer/lexer_spec.cr
- spec/compiler/parser/parser_spec.cr 45 additions, 127 deletionsspec/compiler/parser/parser_spec.cr
- spec/compiler/type_inference/block_spec.cr 2 additions, 4 deletionsspec/compiler/type_inference/block_spec.cr
- spec/compiler/type_inference/exception_spec.cr 8 additions, 12 deletionsspec/compiler/type_inference/exception_spec.cr
- spec/compiler/type_inference/fun_spec.cr 2 additions, 4 deletionsspec/compiler/type_inference/fun_spec.cr
- spec/compiler/type_inference/var_spec.cr 4 additions, 7 deletionsspec/compiler/type_inference/var_spec.cr
- spec/spec_helper.cr 30 additions, 11 deletionsspec/spec_helper.cr
- spec/std/array_spec.cr 14 additions, 36 deletionsspec/std/array_spec.cr
- spec/std/bit_array_spec.cr 1 addition, 3 deletionsspec/std/bit_array_spec.cr
- spec/std/cast_spec.cr 3 additions, 12 deletionsspec/std/cast_spec.cr
- spec/std/char_reader_spec.cr 3 additions, 3 deletionsspec/std/char_reader_spec.cr
- spec/std/dir_spec.cr 5 additions, 13 deletionsspec/std/dir_spec.cr
- spec/std/enumerable_spec.cr 4 additions, 12 deletionsspec/std/enumerable_spec.cr
- spec/std/file_spec.cr 3 additions, 9 deletionsspec/std/file_spec.cr
- spec/std/hash_spec.cr 1 addition, 3 deletionsspec/std/hash_spec.cr
- spec/std/json/parser_spec.cr 1 addition, 3 deletionsspec/std/json/parser_spec.cr
- spec/std/json/pull_parser_spec.cr 4 additions, 6 deletionsspec/std/json/pull_parser_spec.cr
- spec/std/option_parser_spec.cr 9 additions, 13 deletionsspec/std/option_parser_spec.cr
- spec/std/random_spec.cr 2 additions, 8 deletionsspec/std/random_spec.cr
- spec/std/regexp_spec.cr 2 additions, 6 deletionsspec/std/regexp_spec.cr
Please register or sign in to comment