Skip to content

Commit 44528fa

Browse files
committed
fix:add tests
1 parent 0c07bc7 commit 44528fa

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

internal/bcrypt/ntstatus_test.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ import "testing"
55
func TestNTStatusErrMessage(t *testing.T) {
66

77
StatusWait1 := NTStatus(0x00000001)
8+
StatusWait2 := NTStatus(0x00000002)
89

9-
t.Error(StatusWait1.Error())
10+
if StatusWait1.Error() != "STATUS_WAIT_1" {
11+
t.Errorf("Expected STATUS_WAIT_2, got %s", StatusWait2.Error())
12+
}
13+
14+
if StatusWait2.Error() != "STATUS_WAIT_2" {
15+
t.Errorf("Expected STATUS_WAIT_2, got %s", StatusWait2.Error())
16+
}
1017
}

0 commit comments

Comments
 (0)