package Ġorg . ke thereum . e ip 1 3 7 Ċ Ċ import Ġorg . assertj . core . api . Assertions . assertThat Ċ import Ġorg . junit . jupiter . api . Test Ċ Ċ /** Ċ Ġ* Ġtest - vectors Ġare Ġfrom Ġhere : Ċ Ġ* Ġhttps :// e ips . ethereum . org / E IPS / e ip - 1 3 7 Ġand Ġhttps :// docs . ens . domains / contract - api - reference / name - processing Ċ Ġ*/ Ċ class ĠThe E IP 1 3 7 Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġname Hash HexString Works For Empty () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertThat ( ENS Name (" "). to NameHash (). to HexString ()). isEqualTo (" 0 x 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġname Hash On TopLevel Name Works () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertThat ( ENS Name (" eth "). to NameHash (). to HexString ()). isEqualTo (" 0 x 9 3 c deb 7 0 8 b 7 5 4 5 dc 6 6 8 eb 9 2 8 0 1 7 6 1 6 9 d 1 c 3 3 cfd 8 ed 6 f 0 4 6 9 0 a 0 bcc 8 8 a 9 3 fc 4 ae ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġnormal NameHash Works () Ġ{ ĊĊĠĠĠĠĠĠĠ ĠassertThat ( ENS Name (" alice . eth "). to NameHash (). to HexString ()). isEqualTo (" 0 x 7 8 7 1 9 2 fc 5 3 7 8 cc 3 2 aa 9 5 6 ddf ded bf 2 6 b 2 4 e 8 d 7 8 e 4 0 1 0 9 add 0 eea 2 c 1 a 0 1 2 c 3 dec ") ĊĊĠĠĠĠĠĠĠ ĠassertThat ( ENS Name (" foo . eth "). to NameHash (). to HexString ()). isEqualTo (" 0 xde 9 b 0 9 fd 7 c 5 f 9 0 1 e 2 3 a 3 f 1 9 f ecc 5 4 8 2 8 e 9 c 8 4 8 5 3 9 8 0 1 e 8 6 5 9 1 bd 9 8 0 1 b 0 1 9 f 8 4 f ") ĊĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġname Hash With Emoji Works () Ġ{ ĊĠĠĠĠĠĠĠ Ġ// ĠðŁĴ © ðŁĴ © ðŁĴ © . eth ĊĠĠĠĠĠĠĠ ĠassertThat ( ENS Name ("\ uD 8 3 D \ uD CA 9 \ uD 8 3 D \ uD CA 9 \ uD 8 3 D \ uD CA 9 . eth "). to NameHash (). to HexString ()). isEqualTo (" 0 xa 7 4 feb 0 e 5 fa 5 6 0 6 d 3 e 6 5 0 2 7 5 e 3 bb 3 8 7 3 b 0 0 6 a 1 0 d 5 5 8 3 8 9 d 3 ce 2 ab be 6 8 1 fcf c 8 e ") ĊĠĠĠ Ġ} Ċ Ċ }