Browse Source

Minor style change

gingerBill 3 years ago
parent
commit
1e7c60e171
1 changed files with 17 additions and 17 deletions
  1. 17 17
      tests/core/compress/test_core_compress.odin

+ 17 - 17
tests/core/compress/test_core_compress.odin

@@ -26,27 +26,27 @@ TEST_count := 0
 TEST_fail  := 0
 TEST_fail  := 0
 
 
 when ODIN_TEST {
 when ODIN_TEST {
-    expect  :: testing.expect
-    log     :: testing.log
+	expect  :: testing.expect
+	log     :: testing.log
 } else {
 } else {
-    expect  :: proc(t: ^testing.T, condition: bool, message: string, loc := #caller_location) {
-        fmt.printf("[%v] ", loc)
-        TEST_count += 1
-        if !condition {
-            TEST_fail += 1
-            fmt.println(message)
-            return
-        }
-        fmt.println(" PASS")
-    }
-    log     :: proc(t: ^testing.T, v: any, loc := #caller_location) {
-        fmt.printf("[%v] ", loc)
-        fmt.printf("log: %v\n", v)
-    }
+	expect  :: proc(t: ^testing.T, condition: bool, message: string, loc := #caller_location) {
+		fmt.printf("[%v] ", loc)
+		TEST_count += 1
+		if !condition {
+			TEST_fail += 1
+			fmt.println(message)
+			return
+		}
+		fmt.println(" PASS")
+	}
+	log     :: proc(t: ^testing.T, v: any, loc := #caller_location) {
+		fmt.printf("[%v] ", loc)
+		fmt.printf("log: %v\n", v)
+	}
 }
 }
 
 
 main :: proc() {
 main :: proc() {
-	w, _ := io.to_writer(os.stream_from_handle(os.stdout))
+	w := io.to_writer(os.stream_from_handle(os.stdout))
 	t := testing.T{w=w}
 	t := testing.T{w=w}
 	zlib_test(&t)
 	zlib_test(&t)
 	gzip_test(&t)
 	gzip_test(&t)