Roland Kaufmann
781ef04a0e
Compare size with unsigned int literal
...
Surprisingly, some compilers (notably GCC 4.6.3) will issue a warning
when comparing a literal which is clearly positive to an unsigned type,
when looking for a suitable instantiation in Boost. This is fixed by
making the literal unsigned too, so there's no doubt.
2013-10-22 23:39:49 +02:00
Joakim Hove
1cc16de2bd
Added test for replace keyword functionality
2013-10-18 10:17:48 +02:00
Joakim Hove
b63244228d
Added Parser::dropKeyword()
2013-10-09 08:22:43 +02:00
Joakim Hove
9986916ca7
Fixing parser tests
2013-09-17 17:45:42 +02:00
Joakim Hove
1ff18bb38a
Removed constructor with one global JSON config file + addedd optional flag to include all built in keywords
2013-09-14 22:39:43 +02:00
Kristian Flikka
e55d52654d
Added test to check that getKeyword throws when asked for non-existing keyword
2013-08-27 10:10:12 +02:00
Kristian Flikka
480d14934b
Added test for a case with fully, partial and empty record body, defaults are added
2013-08-26 15:17:52 +02:00
Kristian Flikka
be882b6b27
Removed commented test
2013-08-23 12:18:38 +02:00
Joakim Hove
b630140316
Merged upstream/master
2013-08-23 09:30:23 +02:00
Joakim Hove
df031007db
Added items: to all inline config strings
2013-08-23 00:20:07 +02:00
Joakim Hove
dfca913462
Added method to load keyword configurations from directory
2013-08-21 12:50:21 +02:00
Kristian Flikka
002ab45f77
Removed commented test
2013-08-21 08:51:00 +02:00
Kristian Flikka
89daeea561
Renamed newRawKeyword to createRawKeyword. Minor refactoring
2013-08-21 08:44:46 +02:00
Joakim Hove
47d29cc804
Added parser->size() and parser->loadKeywordFromFile()
2013-08-19 22:37:48 +02:00
Joakim Hove
a0a20425f6
Updated tests to reflect that RawDeck has been removed
2013-08-13 14:51:33 +02:00
Joakim Hove
946485e2b4
Added parsing support for sizeType OTHER
2013-08-06 16:28:12 +02:00
Joakim Hove
475b607faf
Can now parse file with several WCONHIST keywords
2013-08-01 12:50:42 +02:00
Joakim Hove
75954575d5
Changed Deck::getKeyword() to take an additional inde argument
2013-08-01 10:57:25 +02:00
Joakim Hove
db60ee2b56
Removed setRecord() method ParserKeyword. Instead ParserRecord is created during ParserKeyword construction
2013-07-31 15:02:00 +02:00
Joakim Hove
b3d9fb51a0
Parser object can be constructed with config file as input argument
2013-07-31 11:30:21 +02:00
Joakim Hove
e0995814f6
More JSON integration in Parser and ParserKeyword
2013-07-30 14:10:07 +02:00
Kristian Flikka
31b3031c1a
Removed class ParserKeywordSize, and accompanying tests. Put info into ParserKeyword. Changed tests to expose same constraints.
2013-06-24 14:08:53 +02:00
Kristian Flikka
951ce6ac4d
Changed from using RawParserKeywords to equivalent functionality now in Parser and ParserKeywordSize
2013-06-21 15:34:45 +02:00
Kristian Flikka
01abb91959
Renamed ParserRecordSize to ParserKeywordSize, because it is more consistent with ParserItemSize
2013-06-21 10:23:24 +02:00
Kristian Flikka
d79745ce4f
Changed some KEYWORD->Keyword instances, search and replace hickup
2013-06-20 15:40:45 +02:00
Kristian Flikka
f1660460dc
Replaced all instances of KW with Keyword. We can afford it.
2013-06-20 15:30:37 +02:00
Kristian Flikka
5fa04e5377
Added/implemented XStringItem for Parser and Deck, with tests. Added integration test for WWCT keyword. Moved DeckItem tests into type-specific files. Removed unused file.
2013-06-20 13:56:11 +02:00
Kristian Flikka
17dde28c49
Expanded ParserTest to test int based record with 1 to many records and items
2013-06-18 14:12:00 +02:00
Kristian Flikka
de1983807d
Added single parser test to test raw to deck parsing of int
2013-06-18 13:47:07 +02:00
Kristian Flikka
2cce97f115
Split parser function, to make more modular and testable. Moved integrationtests from ParserTests into Integration tests.
2013-06-18 10:28:30 +02:00
Kristian Flikka
fbb468342d
Finished up the last pieces for a simple BPR keyword vertical.
2013-06-04 14:32:30 +02:00
Joakim Hove
c596b086c8
Started integration testing
2013-05-30 10:11:12 +02:00
Kristian Flikka
2088c3e96d
Simple scan implementation in ParserIntItem added. DeckIntItem now support push_back
2013-05-08 14:31:20 +02:00
Kristian Flikka
b36f000377
Moved tests from one base location, into per-topic folders
2013-05-06 14:46:29 +02:00