mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Replace the Error() object with an error() function which takes fmt
formatspecs, making for much cleaner code. Reformatted everything. This actually happened in multiple steps but then I corrupted my local repository and I had to recover from the working tree.
This commit is contained in:
@@ -45,15 +45,15 @@ static void testLeafname()
|
||||
|
||||
static void testUnhex()
|
||||
{
|
||||
AssertThat(unhex(""), Equals(""));
|
||||
AssertThat(unhex("foo"), Equals("foo"));
|
||||
AssertThat(unhex("f%20o"), Equals("f o"));
|
||||
AssertThat(unhex(""), Equals(""));
|
||||
AssertThat(unhex("foo"), Equals("foo"));
|
||||
AssertThat(unhex("f%20o"), Equals("f o"));
|
||||
}
|
||||
|
||||
static void testUnbcd()
|
||||
{
|
||||
AssertThat(unbcd(0x1234), Equals(1234));
|
||||
AssertThat(unbcd(0x87654321), Equals(87654321));
|
||||
AssertThat(unbcd(0x1234), Equals(1234));
|
||||
AssertThat(unbcd(0x87654321), Equals(87654321));
|
||||
}
|
||||
|
||||
int main(void)
|
||||
@@ -63,7 +63,7 @@ int main(void)
|
||||
testRightTrim();
|
||||
testTrim();
|
||||
testLeafname();
|
||||
testUnhex();
|
||||
testUnbcd();
|
||||
testUnhex();
|
||||
testUnbcd();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user