@@ -14,8 +14,9 @@ def test_parse_and_report_at_38000(self):
1414 input_str = """
1515 uint16_t rawData[7] = {
1616 20100, 20472, 15092, 30704, 20102, 20472, 15086};"""
17- pronto .parse_and_report (input_str , 38000 , 100000 , True , False , False ,
18- output )
17+ pronto .parse_and_report (input_str , hertz = 38000 , end_usecs = 100000 ,
18+ use_initial = True , generate_code = False ,
19+ verbose = False , output = output )
1920 self .assertEqual (
2021 output .getvalue (),
2122 "Pronto code = "
@@ -28,8 +29,9 @@ def test_parse_and_report_at_36000(self):
2829 input_str = """
2930 uint16_t rawData[7] = {
3031 20100, 20472, 15092, 30704, 20102, 20472, 15086};"""
31- pronto .parse_and_report (input_str , 36000 , 100000 , True , False , False ,
32- output )
32+ pronto .parse_and_report (input_str , hertz = 36000 , end_usecs = 100000 ,
33+ use_initial = True , generate_code = False ,
34+ verbose = False , output = output )
3335 self .assertEqual (
3436 output .getvalue (),
3537 "Pronto code = "
@@ -42,8 +44,9 @@ def test_parse_and_report_at_57600(self):
4244 input_str = """
4345 uint16_t rawData[7] = {
4446 20100, 20472, 15092, 30704, 20102, 20472, 15086};"""
45- pronto .parse_and_report (input_str , 57600 , 100000 , True , False , False ,
46- output )
47+ pronto .parse_and_report (input_str , hertz = 57600 , end_usecs = 100000 ,
48+ use_initial = True , generate_code = False ,
49+ verbose = False , output = output )
4750 self .assertEqual (
4851 output .getvalue (),
4952 "Pronto code = "
@@ -56,8 +59,9 @@ def test_using_repeat(self):
5659 input_str = """
5760 uint16_t rawData[7] = {
5861 20100, 20472, 15092, 30704, 20102, 20472, 15086};"""
59- pronto .parse_and_report (input_str , 38000 , 30000 , False , False , False ,
60- output )
62+ pronto .parse_and_report (input_str , hertz = 38000 , end_usecs = 30000 ,
63+ use_initial = False , generate_code = False ,
64+ verbose = False , output = output )
6165 self .assertEqual (
6266 output .getvalue (),
6367 "Pronto code = "
@@ -70,7 +74,9 @@ def test_generate_code_output(self):
7074 input_str = """
7175 uint16_t rawData[7] = {
7276 20100, 20472, 15092, 30704, 20102, 20472, 15086};"""
73- pronto .parse_and_report (input_str , 38000 , 30000 , True , True , False , output )
77+ pronto .parse_and_report (input_str , 38000 , end_usecs = 30000 ,
78+ use_initial = True , generate_code = True ,
79+ verbose = False , output = output )
7480 self .assertEqual (
7581 output .getvalue (),
7682 "uint16_t pronto[12] = {0x0000, 0x006D, 0x0004, 0x0000, 0x02fb, "
0 commit comments