test(scripts): create measurement script tests

This commit is contained in:
Umut
2021-11-12 16:46:58 +03:00
parent e7e7a02425
commit d244bcace9
13 changed files with 213 additions and 3 deletions

View File

@@ -0,0 +1,7 @@
# bench: Unit Target: X
# bench: Measure: Printing Time (ms)
print(42)
# bench: Measure: End
# bench: Alert: Printing Time (ms) != "abc"

View File

@@ -0,0 +1,7 @@
# bench: Unit Target: X
# bench: Measure: Printing Time (ms)
print(42)
# bench: Measure: End
# bench: Alert: Printing Time (ms) === 10

View File

@@ -0,0 +1,7 @@
# bench: Unit Target: X
# bench: Measure: Printing Time (ms)
print(42)
# bench: Measure: End
# bench: Alert: Accuracy (%) != 100

View File

@@ -0,0 +1,7 @@
# bench: Unit Target: X
# bench: Measure: End
# bench: Measure: Printing Time (ms)
print(42)
# bench: Measure: End

View File

@@ -0,0 +1,6 @@
# bench: Unit Target: X
if True:
# bench: Measure: Printing Time (ms)
print(42)
# bench: Measure: End

View File

@@ -0,0 +1,13 @@
# bench: Unit Target: X
# bench: Measure: Printing Time Of Three (ms)
print(42)
# bench: Measure: Printing Time Of One (ms)
print(42)
# bench: Measure: End
print(42)
# bench: Measure: End

View File

@@ -0,0 +1,5 @@
# bench: Unit Target: X
# bench: Measure: Printing Time Of Three (ms)
print(42)

View File

@@ -0,0 +1,5 @@
# bench: Full Target: X
# bench: Measure: Printing Time (ms)
print(420)
# bench: Measure: End

View File

@@ -0,0 +1,5 @@
# bench: Unit Target: X
# bench: Measure: Printing Time (ms)
print(42)
# bench: Measure: End