@@ -1614,20 +1614,14 @@ fn non_utf8_string_bit_array_tests() -> List(Test) {
16141614 [
16151615 "let assert <<\"Hello, world\":utf16>> = <<\"Hello, world\":utf16>>"
16161616 |> example(fn() {
1617- assert_equal("Hello, world", {
1618- let assert <<"Hello, world" as message:utf16>> = <<
1619- "Hello, world":utf16,
1620- >>
1621- message
1617+ assert_equal(<<"Hello, world":utf16>>, {
1618+ let assert <<"Hello, world":utf16>> = <<"Hello, world":utf16>>
16221619 })
16231620 }),
16241621 "let assert <<\"Hello, world\":utf32>> = <<\"Hello, world\":utf32>>"
16251622 |> example(fn() {
1626- assert_equal("Hello, world", {
1627- let assert <<"Hello, world" as message:utf32>> = <<
1628- "Hello, world":utf32,
1629- >>
1630- message
1623+ assert_equal(<<"Hello, world":utf32>>, {
1624+ let assert <<"Hello, world":utf32>> = <<"Hello, world":utf32>>
16311625 })
16321626 }),
16331627 "UTF-16 bytes"
@@ -1646,22 +1640,20 @@ fn non_utf8_string_bit_array_tests() -> List(Test) {
16461640 }),
16471641 "UTF-16 pattern matching"
16481642 |> example(fn() {
1649- assert_equal("Hello, 🌍!", {
1650- let assert <<"Hello, 🌍!" as message :utf16>> = <<
1643+ assert_equal(<< "Hello, 🌍!":utf16>> , {
1644+ let assert <<"Hello, 🌍!":utf16>> = <<
16511645 0, 72, 0, 101, 0, 108, 0, 108, 0, 111, 0, 44, 0, 32, 216, 60, 223,
16521646 13, 0, 33,
16531647 >>
1654- message
16551648 })
16561649 }),
16571650 "UTF-32 pattern matching"
16581651 |> example(fn() {
1659- assert_equal("Hello, 🌍!", {
1660- let assert <<"Hello, 🌍!" as message :utf32>> = <<
1652+ assert_equal(<< "Hello, 🌍!":utf32>> , {
1653+ let assert <<"Hello, 🌍!":utf32>> = <<
16611654 0, 0, 0, 72, 0, 0, 0, 101, 0, 0, 0, 108, 0, 0, 0, 108, 0, 0, 0, 111,
16621655 0, 0, 0, 44, 0, 0, 0, 32, 0, 1, 243, 13, 0, 0, 0, 33,
16631656 >>
1664- message
16651657 })
16661658 }),
16671659 "UTF-16 bytes little endian"
@@ -1680,22 +1672,20 @@ fn non_utf8_string_bit_array_tests() -> List(Test) {
16801672 }),
16811673 "UTF-16 pattern matching little endian"
16821674 |> example(fn() {
1683- assert_equal("Hello, 🌍!", {
1684- let assert <<"Hello, 🌍!" as message :utf16-little>> = <<
1675+ assert_equal(<< "Hello, 🌍!":utf16-little>> , {
1676+ let assert <<"Hello, 🌍!":utf16-little>> = <<
16851677 72, 0, 101, 0, 108, 0, 108, 0, 111, 0, 44, 0, 32, 0, 60, 216, 13,
16861678 223, 33, 0,
16871679 >>
1688- message
16891680 })
16901681 }),
16911682 "UTF-32 pattern matching little endian"
16921683 |> example(fn() {
1693- assert_equal("Hello, 🌍!", {
1694- let assert <<"Hello, 🌍!" as message :utf32-little>> = <<
1684+ assert_equal(<< "Hello, 🌍!":utf32-little>> , {
1685+ let assert <<"Hello, 🌍!":utf32-little>> = <<
16951686 72, 0, 0, 0, 101, 0, 0, 0, 108, 0, 0, 0, 108, 0, 0, 0, 111, 0, 0, 0,
16961687 44, 0, 0, 0, 32, 0, 0, 0, 13, 243, 1, 0, 33, 0, 0, 0,
16971688 >>
1698- message
16991689 })
17001690 }),
17011691 "UTF-16 codepoint"
0 commit comments