From 44528fa8698be97eb3163471e9537ed2161a0745 Mon Sep 17 00:00:00 2001 From: mertakman Date: Wed, 18 Dec 2024 14:34:49 +0000 Subject: [PATCH] fix:add tests --- internal/bcrypt/ntstatus_test.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/internal/bcrypt/ntstatus_test.go b/internal/bcrypt/ntstatus_test.go index d78f84f..9a2f247 100644 --- a/internal/bcrypt/ntstatus_test.go +++ b/internal/bcrypt/ntstatus_test.go @@ -5,6 +5,13 @@ import "testing" func TestNTStatusErrMessage(t *testing.T) { StatusWait1 := NTStatus(0x00000001) + StatusWait2 := NTStatus(0x00000002) - t.Error(StatusWait1.Error()) + if StatusWait1.Error() != "STATUS_WAIT_1" { + t.Errorf("Expected STATUS_WAIT_2, got %s", StatusWait2.Error()) + } + + if StatusWait2.Error() != "STATUS_WAIT_2" { + t.Errorf("Expected STATUS_WAIT_2, got %s", StatusWait2.Error()) + } }