Skip to content

Instantly share code, notes, and snippets.

View cTatu's full-sized avatar
🎯
Focusing

Cristian Tatu cTatu

🎯
Focusing
View GitHub Profile
void main() {
Map goodCookies = newCookiesMethod();
Map badCookies = oldCookiesMethod();
print('Are cookies parsed equal to original?');
print('NewMethod: ${deepCompare(cookiesPrepared, goodCookies)}');
print('OldMethod: ${deepCompare(cookiesPrepared, badCookies)}');
print('If there are not cookies the result must be an empty map');
Map goodCookiesEmpty = newCookiesMethod(emptyCookies: true);