Skip to content

Commit

Permalink
Some more edge cases for the lgtunit tool QuickCheck implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoura committed Mar 21, 2019
1 parent c23549b commit e0edbb7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tools/lgtunit/lgtunit.lgt
Expand Up @@ -1679,6 +1679,20 @@
type_edge_case(byte, 2, 255).
type_edge_case(probability, 1, 0.0).
type_edge_case(probability, 2, 1.0).
type_edge_case(character_code(ascii_full), 1, 0).
type_edge_case(character_code(ascii_full), 2, 127).
type_edge_case(character_code(ascii_printable), 1, 32).
type_edge_case(character_code(ascii_printable), 2, 126).
type_edge_case(character_code(byte), 1, 0).
type_edge_case(character_code(byte), 2, 255).
type_edge_case(character_code(unicode_bmp), 1, 0).
type_edge_case(character_code(unicode_bmp), 2, 65535).
type_edge_case(character_code(unicode_full), 1, 0).
type_edge_case(character_code(unicode_full), 2, 1114111).
type_edge_case(code(CharSet), Test, Value) :-
type_edge_case(character_code(CharSet), Test, Value).
type_edge_case(operator_priority, 1, 0).
type_edge_case(operator_priority, 1, 1200).
type_edge_case(list, 1, []).
type_edge_case(list(_), 1, []).
type_edge_case(list(_,_,_), 1, []).
Expand Down

0 comments on commit e0edbb7

Please sign in to comment.