mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Unit Tests - record.t
- Cast to size_t to use a (pseudo) appropriate UnitTest::is method.
This commit is contained in:
parent
df8eb7d5ef
commit
dbf8def7db
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ int main (int argc, char** argv)
|
|||
// Record::get_ulong
|
||||
record.set ("two", "4294967295");
|
||||
t.is (record.composeF4 (), "[name:\"value\" one:\"1\" two:\"4294967295\"]\n", "Record::set");
|
||||
t.is (record.get_ulong ("two"), 4294967295, "Record::get_ulong");
|
||||
t.is ((size_t)record.get_ulong ("two"), (size_t)4294967295, "Record::get_ulong");
|
||||
|
||||
// Record::remove
|
||||
record.remove ("one");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue