mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
toml: small refactor, move all json functionality to submodule (#12502)
This commit is contained in:
@@ -56,17 +56,17 @@ fn test_dates() {
|
||||
od_time := toml.Date{'1979-05-27'}
|
||||
ld1 := toml_doc.value('ld1')
|
||||
assert ld1.date() == od_time
|
||||
// assert ld1.string() == '1979-05-27' // TODO fail in CI but pass locally?
|
||||
// assert ld1.string() == '1979-05-27' // TODO memory corruption
|
||||
|
||||
// lt1 test section
|
||||
mut ot_time := toml.Time{'07:32:00'}
|
||||
lt1 := toml_doc.value('lt1')
|
||||
assert lt1.time() == ot_time
|
||||
// assert lt1.string() == '07:32:00' // TODO fail in CI but pass locally?
|
||||
// assert lt1.string() == '07:32:00' // TODO memory corruption
|
||||
|
||||
// lt2 test section
|
||||
ot_time = toml.Time{'00:32:00.999999'}
|
||||
lt2 := toml_doc.value('lt2')
|
||||
assert lt2.time() == ot_time
|
||||
// assert lt2.string() == '00:32:00.999999' // TODO fail in CI but pass locally?
|
||||
// assert lt2.string() == '00:32:00.999999' // TODO memory corruption
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user