Skip to content

Instantly share code, notes, and snippets.

View dlachowicz-mw's full-sized avatar

Dominic Lachowicz dlachowicz-mw

View GitHub Profile
void test1(void) {
Dictionary *english = create_dictionary("en");
Dictionary *english_composite = create_composite_dictionary(english, english);
// we don't care whether these are actually spelled correctly or not. here, we only care that we get the same
// answers back in both cases
assert english.is_spelled_correctly("the") == english_composite.is_spelled_correctly("the");
assert english.is_spelled_correctly("teh") == english_composite.is_spelled_correctly("teh");
}