We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c58563c commit 8e29ff7Copy full SHA for 8e29ff7
1 file changed
vlib/time/time_test.c.v
@@ -9,6 +9,15 @@ fn test_tm_gmtoff() {
9
C.time(&rawtime) // C.tm{}
10
11
info := C.localtime(&rawtime)
12
- assert info.tm_gmtoff == time.now().unix() - time.utc().unix()
+ t1 := time.now()
13
+ t2 := time.utc()
14
+ dump(t1)
15
+ dump(t2)
16
+ dump(t1.nanosecond)
17
+ dump(t2.nanosecond)
18
+ diff := t1.unix() - t2.unix()
19
+ dump(diff)
20
+ dump(info.tm_gmtoff)
21
+ assert info.tm_gmtoff == diff
22
}
23
0 commit comments