aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorsobolevn <mail@sobolevn.me>2024-08-17 23:32:04 +0300
committerLouis Pilfold <louis@lpil.uk>2024-08-24 13:07:53 +0100
commit776b12b5b5501ef26c34de5717c819be9c02ffb2 (patch)
tree927862a53170c3bc37c68b9c85f0e64eb9a1736e /test
parent91f89f3c323609a7f301ef2d66d0bb542a379956 (diff)
downloadgleam_stdlib-776b12b5b5501ef26c34de5717c819be9c02ffb2.tar.gz
gleam_stdlib-776b12b5b5501ef26c34de5717c819be9c02ffb2.zip
Fix JS tests
Diffstat (limited to 'test')
-rw-r--r--test/gleam/bit_array_test.gleam2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/gleam/bit_array_test.gleam b/test/gleam/bit_array_test.gleam
index e6887d0..7d1d03b 100644
--- a/test/gleam/bit_array_test.gleam
+++ b/test/gleam/bit_array_test.gleam
@@ -377,6 +377,7 @@ pub fn compare_utf8_test() {
|> should.equal(order.Eq)
}
+@target(erlang)
pub fn compare_utf16_test() {
bit_array.compare(<<"ABC":utf16>>, <<"ABC":utf16>>)
|> should.equal(order.Eq)
@@ -388,6 +389,7 @@ pub fn compare_utf16_test() {
|> should.equal(order.Lt)
}
+@target(erlang)
pub fn compare_mixed_utfs_test() {
bit_array.compare(<<"A":utf16>>, <<"A":utf8>>)
|> should.equal(order.Lt)