7
7
8
8
def test_langeval_exact_match_evaluator ():
9
9
entry = ExactMatchEntry (
10
- input = "What is the capital of France?" ,
11
10
output = "What is the capital of France?" ,
11
+ expected_output = "What is the capital of France?" ,
12
12
)
13
13
settings = ExactMatchSettings ()
14
14
@@ -20,8 +20,8 @@ def test_langeval_exact_match_evaluator():
20
20
21
21
def test_langeval_exact_match_evaluator_defaults ():
22
22
entry = ExactMatchEntry (
23
- input = "What is the capital of France?" ,
24
- output = "What is the capital of the Netherlands?" ,
23
+ output = "What is the capital of France?" ,
24
+ expected_output = "What is the capital of the Netherlands?" ,
25
25
)
26
26
settings = ExactMatchSettings ()
27
27
@@ -33,8 +33,8 @@ def test_langeval_exact_match_evaluator_defaults():
33
33
34
34
def test_langeval_exact_match_case_sensitive_true ():
35
35
entry = ExactMatchEntry (
36
- input = "Hello World" ,
37
- output = "hello world" ,
36
+ output = "Hello World" ,
37
+ expected_output = "hello world" ,
38
38
)
39
39
settings = ExactMatchSettings (case_sensitive = True )
40
40
@@ -46,8 +46,8 @@ def test_langeval_exact_match_case_sensitive_true():
46
46
47
47
def test_langeval_exact_match_case_sensitive_false ():
48
48
entry = ExactMatchEntry (
49
- input = "Hello World" ,
50
- output = "hello world" ,
49
+ output = "Hello World" ,
50
+ expected_output = "hello world" ,
51
51
)
52
52
settings = ExactMatchSettings (case_sensitive = False )
53
53
@@ -59,8 +59,8 @@ def test_langeval_exact_match_case_sensitive_false():
59
59
60
60
def test_langeval_exact_match_trim_whitespace_true ():
61
61
entry = ExactMatchEntry (
62
- input = " Hello World " ,
63
- output = "Hello World" ,
62
+ output = " Hello World " ,
63
+ expected_output = "Hello World" ,
64
64
)
65
65
settings = ExactMatchSettings (trim_whitespace = True )
66
66
@@ -72,8 +72,8 @@ def test_langeval_exact_match_trim_whitespace_true():
72
72
73
73
def test_langeval_exact_match_trim_whitespace_false ():
74
74
entry = ExactMatchEntry (
75
- input = " Hello World " ,
76
- output = "Hello World" ,
75
+ output = " Hello World " ,
76
+ expected_output = "Hello World" ,
77
77
)
78
78
settings = ExactMatchSettings (trim_whitespace = False )
79
79
@@ -85,8 +85,8 @@ def test_langeval_exact_match_trim_whitespace_false():
85
85
86
86
def test_langeval_exact_match_remove_punctuation_true ():
87
87
entry = ExactMatchEntry (
88
- input = "Hello, World!" ,
89
- output = "Hello World" ,
88
+ output = "Hello, World!" ,
89
+ expected_output = "Hello World" ,
90
90
)
91
91
settings = ExactMatchSettings (remove_punctuation = True )
92
92
@@ -98,8 +98,8 @@ def test_langeval_exact_match_remove_punctuation_true():
98
98
99
99
def test_langeval_exact_match_remove_punctuation_false ():
100
100
entry = ExactMatchEntry (
101
- input = "Hello, World!" ,
102
- output = "Hello World" ,
101
+ output = "Hello, World!" ,
102
+ expected_output = "Hello World" ,
103
103
)
104
104
settings = ExactMatchSettings (remove_punctuation = False )
105
105
@@ -111,8 +111,8 @@ def test_langeval_exact_match_remove_punctuation_false():
111
111
112
112
def test_langeval_exact_match_combined_settings ():
113
113
entry = ExactMatchEntry (
114
- input = " Hello, World! " ,
115
- output = "hello world" ,
114
+ output = " Hello, World! " ,
115
+ expected_output = "hello world" ,
116
116
)
117
117
settings = ExactMatchSettings (
118
118
case_sensitive = False ,
0 commit comments