Index: mojo/go/tests/system_test.go |
diff --git a/mojo/go/tests/system_test.go b/mojo/go/tests/system_test.go |
new file mode 100644 |
index 0000000000000000000000000000000000000000..07b46b5afbe8684a78afc4e7ace40035a7d6cc41 |
--- /dev/null |
+++ b/mojo/go/tests/system_test.go |
@@ -0,0 +1,19 @@ |
+package tests |
+ |
+import "mojo/go/system/embedder" |
+import "mojo/go/system/impl" |
+import "mojo/public/go/mojo/system" |
+import "testing" |
+ |
+func Init() { |
+ embedder.InitializeMojoEmbedder(); |
+} |
+ |
+func TestGetTimeTicksNow(t *testing.T) { |
+ Init(); |
+ var c system.Core = impl.GetCore(); |
+ x := c.GetTimeTicksNow(); |
+ if (x < 10) { |
+ t.Error("hi"); |
qsr
2014/09/22 11:11:25
You might want a better error.
tburkard
2014/09/22 14:23:17
Done.
|
+ } |
+} |