Skip to content

Commit ddec449

Browse files
committed
update test cases to suggest change
1 parent 7a735e6 commit ddec449

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

lib/aiken/primitive/bytearray.ak

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -638,28 +638,13 @@ pub fn starts_with(self: ByteArray, prefix: ByteArray) -> Bool {
638638
}
639639

640640
test starts_with_1() {
641-
let x = "Hello, World!"
642-
starts_with(x, "Hello")
643-
}
644-
645-
test starts_with_2() {
646-
let x = "Hello, World!"
647-
starts_with(x, "World") == False
648-
}
649-
650-
test starts_with_3() {
651-
let x = ""
652-
starts_with(x, "World") == False
653-
}
654-
655-
test starts_with_4() {
656641
starts_with("", "")
657642
}
658643

659-
test starts_with_5() {
644+
test starts_with_2() {
660645
starts_with("Hello, World!", "Hello, World!")
661646
}
662647

663-
test starts_with_6() {
664-
!starts_with("Hello, World!", "Hello")
648+
test starts_with_3() {
649+
!starts_with("Hello, World!", "hello")
665650
}

0 commit comments

Comments
 (0)