summaryrefslogtreecommitdiff
path: root/tests/gobang.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gobang.go')
-rw-r--r--tests/gobang.go34
1 files changed, 33 insertions, 1 deletions
diff --git a/tests/gobang.go b/tests/gobang.go
index 324a155..f071f53 100644
--- a/tests/gobang.go
+++ b/tests/gobang.go
@@ -514,10 +514,19 @@ func TestSetLoggerOutput() {
// fmt.Println(e)
}
-func MainTest() {
+func t1() {
test__PBKDF()
+}
+
+func t2() {
test_scrypt()
+}
+
+func t3() {
test_Hash()
+}
+
+func t4() {
test_Random()
test_Salt()
test_newUUIDFrom()
@@ -525,3 +534,26 @@ func MainTest() {
test_UUIDString()
test_ParseUUID()
}
+
+func MainTest() {
+ arg := ""
+ if len(os.Args) > 1 {
+ arg = os.Args[1]
+ }
+
+ switch arg {
+ case "1":
+ t1()
+ case "2":
+ t2()
+ case "3":
+ t3()
+ case "4":
+ t4()
+ default:
+ t1()
+ t2()
+ t3()
+ t4()
+ }
+}