diff options
Diffstat (limited to 'gen/test/gleam@order_test.erl')
-rw-r--r-- | gen/test/gleam@order_test.erl | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/gen/test/gleam@order_test.erl b/gen/test/gleam@order_test.erl deleted file mode 100644 index 771e72c..0000000 --- a/gen/test/gleam@order_test.erl +++ /dev/null @@ -1,47 +0,0 @@ --module(gleam@order_test). --compile(no_auto_import). - --export([reverse_test/0, to_int_test/0, compare_test/0, max_test/0, min_test/0]). - -reverse_test() -> - gleam@should:equal(gleam@order:reverse(lt), gt), - gleam@should:equal(gleam@order:reverse(eq), eq), - gleam@should:equal(gleam@order:reverse(gt), lt). - -to_int_test() -> - gleam@should:equal(gleam@order:to_int(lt), -1), - gleam@should:equal(gleam@order:to_int(eq), 0), - gleam@should:equal(gleam@order:to_int(gt), 1). - -compare_test() -> - gleam@should:equal(gleam@order:compare(lt, lt), eq), - gleam@should:equal(gleam@order:compare(lt, eq), lt), - gleam@should:equal(gleam@order:compare(lt, gt), lt), - gleam@should:equal(gleam@order:compare(eq, lt), gt), - gleam@should:equal(gleam@order:compare(eq, eq), eq), - gleam@should:equal(gleam@order:compare(eq, gt), lt), - gleam@should:equal(gleam@order:compare(gt, lt), gt), - gleam@should:equal(gleam@order:compare(gt, eq), gt), - gleam@should:equal(gleam@order:compare(gt, gt), eq). - -max_test() -> - gleam@should:equal(gleam@order:max(lt, lt), lt), - gleam@should:equal(gleam@order:max(lt, eq), eq), - gleam@should:equal(gleam@order:max(lt, gt), gt), - gleam@should:equal(gleam@order:max(eq, lt), eq), - gleam@should:equal(gleam@order:max(eq, eq), eq), - gleam@should:equal(gleam@order:max(eq, gt), gt), - gleam@should:equal(gleam@order:max(gt, lt), gt), - gleam@should:equal(gleam@order:max(gt, eq), gt), - gleam@should:equal(gleam@order:max(gt, gt), gt). - -min_test() -> - gleam@should:equal(gleam@order:min(lt, lt), lt), - gleam@should:equal(gleam@order:min(lt, eq), lt), - gleam@should:equal(gleam@order:min(lt, gt), lt), - gleam@should:equal(gleam@order:min(eq, lt), lt), - gleam@should:equal(gleam@order:min(eq, eq), eq), - gleam@should:equal(gleam@order:min(eq, gt), eq), - gleam@should:equal(gleam@order:min(gt, lt), lt), - gleam@should:equal(gleam@order:min(gt, eq), eq), - gleam@should:equal(gleam@order:min(gt, gt), gt). |