blob: 63a329a05876a4e5f2d6fcd025582b9e8caab8bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
-module(gleam@pair_test).
-compile(no_auto_import).
-export([first_test/0, second_test/0, swap_test/0]).
first_test() ->
gleam@expect:equal(gleam@pair:first({1, 2}), 1).
second_test() ->
gleam@expect:equal(gleam@pair:second({1, 2}), 2).
swap_test() ->
gleam@expect:equal(gleam@pair:swap({1, <<"2">>}), {<<"2">>, 1}).
|