-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTESTING-REPORT.scm
More file actions
287 lines (262 loc) · 9.43 KB
/
TESTING-REPORT.scm
File metadata and controls
287 lines (262 loc) · 9.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
;; SPDX-License-Identifier: MPL-2.0
;; AffineScript Testing Report - Machine-Readable Format
;; Generated: 2025-12-29
(testing-report
(metadata
(version "1.0.0")
(project "affinescript")
(project-version "0.1.0")
(test-date "2025-12-29")
(generated-by "automated-testing"))
(environment
(language "OCaml")
(ocaml-version "5.x")
(ocaml-required ">= 5.1")
(dune-version "3.20.2")
(menhir-version ">= 20231231")
(platform "linux")
(architecture "x86_64"))
(build-summary
(status pass)
(duration-seconds 45)
(issues-fixed 5)
(warnings 0))
(test-summary
(total-tests 74)
(passed 47)
(failed 27)
(skipped 0)
(pass-rate 63.5))
(test-suites
(suite
(name "Lexer")
(total 16)
(passed 16)
(failed 0)
(tests
(test (name "keywords") (status pass))
(test (name "identifiers") (status pass))
(test (name "literals") (status pass))
(test (name "string-literal") (status pass))
(test (name "string-escapes") (status pass))
(test (name "operators") (status pass))
(test (name "punctuation") (status pass))
(test (name "row-variable") (status pass))
(test (name "line-comment") (status pass))
(test (name "block-comment") (status pass))
(test (name "nested-comments") (status pass))
(test (name "hex-literal") (status pass))
(test (name "binary-literal") (status pass))
(test (name "function-decl") (status pass))
(test (name "total-function") (status pass))
(test (name "type-decl") (status pass))))
(suite
(name "Parser")
(total 58)
(passed 31)
(failed 27)
(tests
;; Passing tests
(test (name "literal-int") (status pass))
(test (name "literal-float") (status pass))
(test (name "literal-string") (status pass))
(test (name "literal-bool") (status pass))
(test (name "literal-unit") (status pass))
(test (name "variable") (status pass))
(test (name "binary-add") (status pass))
(test (name "binary-precedence") (status pass))
(test (name "binary-associativity") (status pass))
(test (name "comparison") (status pass))
(test (name "logical") (status pass))
(test (name "unary-neg") (status pass))
(test (name "unary-not") (status pass))
(test (name "function-call") (status pass))
(test (name "field-access") (status pass))
(test (name "index-access") (status pass))
(test (name "tuple") (status pass))
(test (name "array") (status pass))
(test (name "record") (status pass))
(test (name "match-expr") (status pass))
(test (name "lambda") (status pass))
(test (name "let-stmt") (status pass))
(test (name "let-mut-stmt") (status pass))
(test (name "while-stmt") (status pass))
(test (name "for-stmt") (status pass))
(test (name "fn-decl-effect") (status pass))
(test (name "struct-decl") (status pass))
(test (name "enum-decl") (status pass))
(test (name "type-alias") (status pass))
(test (name "trait-decl") (status pass))
(test (name "effect-decl") (status pass))
;; Failing tests
(test (name "if-expr") (status fail)
(issue "block-trailing-expression-conflict"))
(test (name "block") (status fail)
(issue "block-trailing-expression-conflict"))
(test (name "pattern-wildcard") (status fail)
(issue "block-parsing-conflict"))
(test (name "pattern-variable") (status fail)
(issue "block-parsing-conflict"))
(test (name "pattern-constructor") (status fail)
(issue "block-parsing-conflict"))
(test (name "pattern-tuple") (status fail)
(issue "block-parsing-conflict"))
(test (name "pattern-or") (status fail)
(issue "block-parsing-conflict"))
(test (name "fn-decl-simple") (status fail)
(issue "return-type-parsing"))
(test (name "fn-decl-total") (status fail)
(issue "return-type-parsing"))
(test (name "fn-decl-generic") (status fail)
(issue "return-type-parsing"))
(test (name "impl-block") (status fail)
(issue "impl-type-context"))
(test (name "impl-trait") (status fail)
(issue "impl-type-context"))
(test (name "type-simple") (status fail)
(issue "standalone-type-parsing"))
(test (name "type-generic") (status fail)
(issue "standalone-type-parsing"))
(test (name "type-tuple") (status fail)
(issue "standalone-type-parsing"))
(test (name "type-function") (status fail)
(issue "standalone-type-parsing"))
(test (name "type-record") (status fail)
(issue "standalone-type-parsing"))
(test (name "type-row-poly") (status fail)
(issue "standalone-type-parsing"))
(test (name "type-ownership") (status fail)
(issue "standalone-type-parsing"))
(test (name "import-simple") (status fail)
(issue "import-parsing"))
(test (name "import-alias") (status fail)
(issue "import-parsing"))
(test (name "import-list") (status fail)
(issue "import-parsing"))
(test (name "import-glob") (status fail)
(issue "import-parsing"))
(test (name "fibonacci") (status fail)
(issue "block-expression-conflict"))
(test (name "linked-list") (status fail)
(issue "multiple-issues"))
(test (name "effect-handler") (status fail)
(issue "handler-syntax"))
(test (name "trait-bounds") (status fail)
(issue "where-clause-parsing")))))
(issues-fixed
(issue
(id "BUILD-001")
(severity error)
(type build)
(file "lib/dune")
(description "Menhir --explain flag deprecated in newer versions")
(fix "Removed --explain from menhir flags"))
(issue
(id "BUILD-002")
(severity error)
(type type-error)
(file "lib/parser.mly")
(line 371)
(description "Double option wrapping in impl_trait_ref rule")
(fix "Removed Some wrapper from rule actions"))
(issue
(id "BUILD-003")
(severity error)
(type unused-variable)
(file "lib/parser.mly")
(line 324)
(description "Unused variable where_clause in trait_decl")
(fix "Added trd_where field to AST and used variable"))
(issue
(id "BUILD-004")
(severity error)
(type unbound-constructor)
(file "lib/parse.ml")
(line 94)
(description "Reference to undefined Token.WITH constructor")
(fix "Removed stray token mapping"))
(issue
(id "BUILD-005")
(severity error)
(type pattern-match)
(file "test/test_parser.ml")
(description "Incomplete record patterns and non-returning code")
(fix "Added wildcard to patterns, parenthesized expressions")))
(parser-conflicts
(shift-reduce-states 23)
(reduce-reduce-states 2)
(shift-reduce-resolved 132)
(reduce-reduce-resolved 5)
(root-cause
"Block grammar allows list(stmt) followed by optional expr, "
"but expressions can start statements, causing ambiguity"))
(cli-testing
(command "affinescript --help" (status pass))
(command "affinescript lex examples/hello.affine" (status pass))
(command "affinescript parse examples/hello.affine" (status pass)
(note "After fixing effect syntax")))
(example-files
(file
(name "hello.affine")
(status fixed)
(issue "Effect syntax mismatch")
(fix "Changed `-> () / IO` to `-{IO}-> ()`"))
(file
(name "effects.affine")
(status needs-update)
(issues
"Uses aspirational syntax not yet implemented"))
(file
(name "ownership.affine")
(status needs-update)
(issues
"Uses aspirational syntax not yet implemented"))
(file
(name "traits.affine")
(status needs-update)
(issues
"Uses aspirational syntax not yet implemented"))
(file
(name "refinements.affine")
(status needs-update)
(issues
"Uses aspirational syntax not yet implemented"))
(file
(name "rows.affine")
(status needs-update)
(issues
"Uses aspirational syntax not yet implemented"))
(file
(name "vectors.affine")
(status needs-update)
(issues
"Uses aspirational syntax not yet implemented")))
(recommendations
(critical
(item
(priority 1)
(description "Fix block trailing expression parsing")
(approach "Refactor grammar to use lookahead or explicit return")))
(improvement
(item
(priority 2)
(description "Update example files to match current syntax"))
(item
(priority 3)
(description "Improve parser error messages"))
(item
(priority 4)
(description "Add more comprehensive test coverage"))))
(files-modified
(file "lib/dune"
(changes "Removed --explain flag from menhir"))
(file "lib/parser.mly"
(changes "Fixed trait_ref, added trd_where usage"))
(file "lib/ast.ml"
(changes "Added trd_where field to trait_decl"))
(file "lib/parse.ml"
(changes "Removed WITH token mapping"))
(file "test/test_parser.ml"
(changes "Fixed pattern matching issues"))
(file "examples/hello.affine"
(changes "Fixed effect annotation syntax"))))