// DO NOT EDIT! This file was automatically generated by the // `autogenerate_tests.py` Python script. use kennitolur::Kennitala; use std::string::ToString; #[test] fn month_is_zero_1() { const KENNITALAS: [&'static str; 72] = [ "2200012020", "2200012100", "2200012290", "2200012370", "2200012450", "2200012530", "2200012610", "2200012880", "2200012960", "2200013180", "2200013260", "2200013340", "2200013420", "2200013500", "2200013690", "2200013770", "2200013850", "2200013930", "2200014070", "2200014150", "2200014230", "2200014310", "2200014580", "2200014660", "2200014740", "2200014820", "2200014900", "2200015040", "2200015120", "2200015200", "2200015390", "2200015470", "2200015550", "2200015630", "2200015710", "2200015980", "2200016010", "2200016280", "2200016360", "2200016440", "2200016520", "2200016600", "2200016790", "2200016870", "2200016950", "2200017090", "2200017170", "2200017250", "2200017330", "2200017410", "2200017680", "2200017760", "2200017840", "2200017920", "2200018060", "2200018140", "2200018220", "2200018300", "2200018490", "2200018570", "2200018650", "2200018730", "2200018810", "2200019030", "2200019110", "2200019380", "2200019460", "2200019540", "2200019620", "2200019700", "2200019890", "2200019970", ]; for kt_str in KENNITALAS.iter() { let kt_result = Kennitala::new(kt_str); assert!(kt_result.is_err()); } } #[test] fn month_is_zero_2() { const KENNITALAS: [&'static str; 73] = [ "0300122089", "0300122169", "0300122249", "0300122329", "0300122409", "0300122599", "0300122679", "0300122759", "0300122839", "0300122919", "0300123059", "0300123139", "0300123219", "0300123489", "0300123569", "0300123649", "0300123729", "0300123809", "0300123999", "0300124029", "0300124109", "0300124299", "0300124379", "0300124459", "0300124539", "0300124619", "0300124889", "0300124969", "0300125189", "0300125269", "0300125349", "0300125429", "0300125509", "0300125699", "0300125779", "0300125859", "0300125939", "0300126079", "0300126159", "0300126239", "0300126319", "0300126589", "0300126669", "0300126749", "0300126829", "0300126909", "0300127049", "0300127129", "0300127209", "0300127399", "0300127479", "0300127559", "0300127639", "0300127719", "0300127989", "0300128019", "0300128289", "0300128369", "0300128449", "0300128529", "0300128609", "0300128799", "0300128879", "0300128959", "0300129099", "0300129179", "0300129259", "0300129339", "0300129419", "0300129689", "0300129769", "0300129849", "0300129929", ]; for kt_str in KENNITALAS.iter() { let kt_result = Kennitala::new(kt_str); assert!(kt_result.is_err()); } } #[test] fn day_is_zero_1() { const KENNITALAS: [&'static str; 73] = [ "0003002099", "0003002179", "0003002259", "0003002339", "0003002419", "0003002689", "0003002769", "0003002849", "0003002929", "0003003069", "0003003149", "0003003229", "0003003309", "0003003499", "0003003579", "0003003659", "0003003739", "0003003819", "0003004039", "0003004119", "0003004389", "0003004469", "0003004549", "0003004629", "0003004709", "0003004899", "0003004979", "0003005009", "0003005199", "0003005279", "0003005359", "0003005439", "0003005519", "0003005789", "0003005869", "0003005949", "0003006089", "0003006169", "0003006249", "0003006329", "0003006409", "0003006599", "0003006679", "0003006759", "0003006839", "0003006919", "0003007059", "0003007139", "0003007219", "0003007489", "0003007569", "0003007649", "0003007729", "0003007809", "0003007999", "0003008029", "0003008109", "0003008299", "0003008379", "0003008459", "0003008539", "0003008619", "0003008889", "0003008969", "0003009189", "0003009269", "0003009349", "0003009429", "0003009509", "0003009699", "0003009779", "0003009859", "0003009939", ]; for kt_str in KENNITALAS.iter() { let kt_result = Kennitala::new(kt_str); assert!(kt_result.is_err()); } } #[test] fn day_is_zero_2() { const KENNITALAS: [&'static str; 73] = [ "0011752030", "0011752110", "0011752380", "0011752460", "0011752540", "0011752620", "0011752700", "0011752890", "0011752970", "0011753000", "0011753190", "0011753270", "0011753350", "0011753430", "0011753510", "0011753780", "0011753860", "0011753940", "0011754080", "0011754160", "0011754240", "0011754320", "0011754400", "0011754590", "0011754670", "0011754750", "0011754830", "0011754910", "0011755050", "0011755130", "0011755210", "0011755480", "0011755560", "0011755640", "0011755720", "0011755800", "0011755990", "0011756020", "0011756100", "0011756290", "0011756370", "0011756450", "0011756530", "0011756610", "0011756880", "0011756960", "0011757180", "0011757260", "0011757340", "0011757420", "0011757500", "0011757690", "0011757770", "0011757850", "0011757930", "0011758070", "0011758150", "0011758230", "0011758310", "0011758580", "0011758660", "0011758740", "0011758820", "0011758900", "0011759040", "0011759120", "0011759200", "0011759390", "0011759470", "0011759550", "0011759630", "0011759710", "0011759980", ]; for kt_str in KENNITALAS.iter() { let kt_result = Kennitala::new(kt_str); assert!(kt_result.is_err()); } } #[test] fn leap_day_in_2001() { const KENNITALAS: [&'static str; 73] = [ "2902012090", "2902012170", "2902012250", "2902012330", "2902012410", "2902012680", "2902012760", "2902012840", "2902012920", "2902013060", "2902013140", "2902013220", "2902013300", "2902013490", "2902013570", "2902013650", "2902013730", "2902013810", "2902014030", "2902014110", "2902014380", "2902014460", "2902014540", "2902014620", "2902014700", "2902014890", "2902014970", "2902015000", "2902015190", "2902015270", "2902015350", "2902015430", "2902015510", "2902015780", "2902015860", "2902015940", "2902016080", "2902016160", "2902016240", "2902016320", "2902016400", "2902016590", "2902016670", "2902016750", "2902016830", "2902016910", "2902017050", "2902017130", "2902017210", "2902017480", "2902017560", "2902017640", "2902017720", "2902017800", "2902017990", "2902018020", "2902018100", "2902018290", "2902018370", "2902018450", "2902018530", "2902018610", "2902018880", "2902018960", "2902019180", "2902019260", "2902019340", "2902019420", "2902019500", "2902019690", "2902019770", "2902019850", "2902019930", ]; for kt_str in KENNITALAS.iter() { let kt_result = Kennitala::new(kt_str); assert!(kt_result.is_err()); } } #[test] fn new_years_1999() { const KENNITALAS: [&'static str; 73] = [ "3112992049", "3112992129", "3112992209", "3112992399", "3112992479", "3112992559", "3112992639", "3112992719", "3112992989", "3112993019", "3112993289", "3112993369", "3112993449", "3112993529", "3112993609", "3112993799", "3112993879", "3112993959", "3112994099", "3112994179", "3112994259", "3112994339", "3112994419", "3112994689", "3112994769", "3112994849", "3112994929", "3112995069", "3112995149", "3112995229", "3112995309", "3112995499", "3112995579", "3112995659", "3112995739", "3112995819", "3112996039", "3112996119", "3112996389", "3112996469", "3112996549", "3112996629", "3112996709", "3112996899", "3112996979", "3112997009", "3112997199", "3112997279", "3112997359", "3112997439", "3112997519", "3112997789", "3112997869", "3112997949", "3112998089", "3112998169", "3112998249", "3112998329", "3112998409", "3112998599", "3112998679", "3112998759", "3112998839", "3112998919", "3112999059", "3112999139", "3112999219", "3112999489", "3112999569", "3112999649", "3112999729", "3112999809", "3112999999", ]; for kt_str in KENNITALAS.iter() { let kt_result = Kennitala::new(kt_str); let kt = kt_result.unwrap(); assert_eq!(kt.to_string(), kt_str.to_owned()); } } #[test] fn new_years_2000() { const KENNITALAS: [&'static str; 73] = [ "3112002080", "3112002160", "3112002240", "3112002320", "3112002400", "3112002590", "3112002670", "3112002750", "3112002830", "3112002910", "3112003050", "3112003130", "3112003210", "3112003480", "3112003560", "3112003640", "3112003720", "3112003800", "3112003990", "3112004020", "3112004100", "3112004290", "3112004370", "3112004450", "3112004530", "3112004610", "3112004880", "3112004960", "3112005180", "3112005260", "3112005340", "3112005420", "3112005500", "3112005690", "3112005770", "3112005850", "3112005930", "3112006070", "3112006150", "3112006230", "3112006310", "3112006580", "3112006660", "3112006740", "3112006820", "3112006900", "3112007040", "3112007120", "3112007200", "3112007390", "3112007470", "3112007550", "3112007630", "3112007710", "3112007980", "3112008010", "3112008280", "3112008360", "3112008440", "3112008520", "3112008600", "3112008790", "3112008870", "3112008950", "3112009090", "3112009170", "3112009250", "3112009330", "3112009410", "3112009680", "3112009760", "3112009840", "3112009920", ]; for kt_str in KENNITALAS.iter() { let kt_result = Kennitala::new(kt_str); let kt = kt_result.unwrap(); assert_eq!(kt.to_string(), kt_str.to_owned()); } } #[test] fn first_january_2001() { const KENNITALAS: [&'static str; 73] = [ "0101012040", "0101012120", "0101012200", "0101012390", "0101012470", "0101012550", "0101012630", "0101012710", "0101012980", "0101013010", "0101013280", "0101013360", "0101013440", "0101013520", "0101013600", "0101013790", "0101013870", "0101013950", "0101014090", "0101014170", "0101014250", "0101014330", "0101014410", "0101014680", "0101014760", "0101014840", "0101014920", "0101015060", "0101015140", "0101015220", "0101015300", "0101015490", "0101015570", "0101015650", "0101015730", "0101015810", "0101016030", "0101016110", "0101016380", "0101016460", "0101016540", "0101016620", "0101016700", "0101016890", "0101016970", "0101017000", "0101017190", "0101017270", "0101017350", "0101017430", "0101017510", "0101017780", "0101017860", "0101017940", "0101018080", "0101018160", "0101018240", "0101018320", "0101018400", "0101018590", "0101018670", "0101018750", "0101018830", "0101018910", "0101019050", "0101019130", "0101019210", "0101019480", "0101019560", "0101019640", "0101019720", "0101019800", "0101019990", ]; for kt_str in KENNITALAS.iter() { let kt_result = Kennitala::new(kt_str); let kt = kt_result.unwrap(); assert_eq!(kt.to_string(), kt_str.to_owned()); } } #[test] fn leap_day_in_2000() { const KENNITALAS: [&'static str; 72] = [ "2902002020", "2902002100", "2902002290", "2902002370", "2902002450", "2902002530", "2902002610", "2902002880", "2902002960", "2902003180", "2902003260", "2902003340", "2902003420", "2902003500", "2902003690", "2902003770", "2902003850", "2902003930", "2902004070", "2902004150", "2902004230", "2902004310", "2902004580", "2902004660", "2902004740", "2902004820", "2902004900", "2902005040", "2902005120", "2902005200", "2902005390", "2902005470", "2902005550", "2902005630", "2902005710", "2902005980", "2902006010", "2902006280", "2902006360", "2902006440", "2902006520", "2902006600", "2902006790", "2902006870", "2902006950", "2902007090", "2902007170", "2902007250", "2902007330", "2902007410", "2902007680", "2902007760", "2902007840", "2902007920", "2902008060", "2902008140", "2902008220", "2902008300", "2902008490", "2902008570", "2902008650", "2902008730", "2902008810", "2902009030", "2902009110", "2902009380", "2902009460", "2902009540", "2902009620", "2902009700", "2902009890", "2902009970", ]; for kt_str in KENNITALAS.iter() { let kt_result = Kennitala::new(kt_str); let kt = kt_result.unwrap(); assert_eq!(kt.to_string(), kt_str.to_owned()); } }