-
Notifications
You must be signed in to change notification settings - Fork 27
Text #119
Changes from 1 commit
5d0132a
ddfccce
2970d70
d0588b5
e3ea432
bb57cf0
528ea76
6a6a2b1
3e6ef3c
c843d8b
e9f568f
723b878
5a18820
9ae7dfb
40b9634
2578be4
02106e1
8463ad8
a3a6200
adc96fe
7c78766
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,17 +5,29 @@ | |
| (table $t 10 funcref) | ||
| (func $f) | ||
| (func $g) | ||
| (elem (table $t) (i32.const 0) func) | ||
| (elem (i32.const 0)) | ||
| (elem (i32.const 0) $f $f) | ||
| (elem (offset (i32.const 0))) | ||
| (elem (offset (i32.const 0)) $f $f) | ||
|
|
||
| ;; Passive | ||
| (elem funcref) | ||
| (elem funcref (ref.func $f) (ref.func $f) (ref.null) (ref.func $g)) | ||
| (elem func) | ||
| (elem $s func) | ||
| (elem func $f $f $g $g) | ||
| (elem $x func $f $f $g $g) | ||
|
|
||
| (elem $p1 funcref) | ||
| (elem $p2 funcref (ref.func $f) (ref.func $f) (ref.null) (ref.func $g)) | ||
| (elem $p3 func) | ||
| (elem $p4 func $f $f $g $g) | ||
|
|
||
| ;; Active | ||
| (elem (table $t) (i32.const 0) funcref) | ||
| (elem (table $t) (i32.const 0) funcref (ref.func $f) (ref.null)) | ||
| (elem (table $t) (i32.const 0) func) | ||
| (elem (table $t) (i32.const 0) func $f $g) | ||
| (elem (table $t) (i32.const 0) funcref) | ||
| (elem (table $t) (i32.const 0) funcref (ref.func $f) (ref.null)) | ||
| (elem (table $t) (i32.const 0) func) | ||
| (elem (table $t) (i32.const 0) func $f $g) | ||
|
||
| (elem (table $t) (offset (i32.const 0)) funcref) | ||
| (elem (table $t) (offset (i32.const 0)) func $f $g) | ||
| (elem (table 0) (i32.const 0) func) | ||
| (elem (table 0x0) (i32.const 0) func $f $f) | ||
| (elem (table 0x000) (offset (i32.const 0)) func) | ||
|
|
@@ -24,15 +36,41 @@ | |
| (elem (table $t) (i32.const 0) func $f $f) | ||
| (elem (table $t) (offset (i32.const 0)) func) | ||
| (elem (table $t) (offset (i32.const 0)) func $f $f) | ||
| (elem (offset (i32.const 0))) | ||
| (elem (offset (i32.const 0)) funcref (ref.func $f) (ref.null)) | ||
| (elem (offset (i32.const 0)) func $f $f) | ||
| (elem (offset (i32.const 0)) $f $f) | ||
| (elem (i32.const 0)) | ||
| (elem (i32.const 0) funcref (ref.func $f) (ref.null)) | ||
| (elem (i32.const 0) func $f $f) | ||
| (elem (i32.const 0) $f $f) | ||
|
|
||
| (elem (i32.const 3) funcref (ref.func $f) (ref.func $g) (ref.func $f)) | ||
| (elem (i32.const 3) funcref (ref.func $f) (ref.null) (ref.func $f)) | ||
|
|
||
| (elem funcref (ref.func $f) (ref.func $g) (ref.func $f)) | ||
| (elem funcref (ref.func $f) (ref.func $g) (ref.null)) | ||
|
|
||
| (elem (table $t) (i32.const 3) funcref (ref.func $f) (ref.func $g) (ref.func $f)) | ||
| (elem (table $t) (i32.const 3) funcref (ref.func $f) (ref.null) (ref.func $g)) | ||
| (elem $a1 (table $t) (i32.const 0) funcref) | ||
| (elem $a2 (table $t) (i32.const 0) funcref (ref.func $f) (ref.null)) | ||
| (elem $a3 (table $t) (i32.const 0) func) | ||
| (elem $a4 (table $t) (i32.const 0) func $f $g) | ||
| (elem $a5 (table $t) (i32.const 0) funcref) | ||
| (elem $a6 (table $t) (i32.const 0) funcref (ref.func $f) (ref.null)) | ||
| (elem $a7 (table $t) (i32.const 0) func) | ||
| (elem $a8 (table $t) (i32.const 0) func $f $g) | ||
| (elem $a9 (table $t) (offset (i32.const 0)) funcref) | ||
| (elem $a10 (table $t) (offset (i32.const 0)) func $f $g) | ||
| (elem $a11 (table 0) (i32.const 0) func) | ||
| (elem $a12 (table 0x0) (i32.const 0) func $f $f) | ||
| (elem $a13 (table 0x000) (offset (i32.const 0)) func) | ||
| (elem $a14 (table 0) (offset (i32.const 0)) func $f $f) | ||
| (elem $a15 (table $t) (i32.const 0) func) | ||
| (elem $a16 (table $t) (i32.const 0) func $f $f) | ||
| (elem $a17 (table $t) (offset (i32.const 0)) func) | ||
| (elem $a18 (table $t) (offset (i32.const 0)) func $f $f) | ||
| (elem $a19 (offset (i32.const 0))) | ||
| (elem $a20 (offset (i32.const 0)) funcref (ref.func $f) (ref.null)) | ||
| (elem $a21 (offset (i32.const 0)) func $f $f) | ||
| (elem $a22 (offset (i32.const 0)) $f $f) | ||
| (elem $a23 (i32.const 0)) | ||
| (elem $a24 (i32.const 0) funcref (ref.func $f) (ref.null)) | ||
| (elem $a25 (i32.const 0) func $f $f) | ||
| (elem $a26 (i32.const 0) $f $f) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also here you add tests for active element segments with IDs which are the same as the tests above. What is the purpose of these tests? As far as I understand, you cannot even use active elements by ID. Can you add a comment which explains the idea behind these tests, and how they are supposed to increase coverage?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Like above, this is purely a syntax test, see heading. Active elements can be used by ids, but behave like a dropped segment, i.e., trap in most cases. |
||
| ) | ||
|
|
||
| (module | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These tests look exactly the same as above, although with IDs. Do you expect these additional data segments to increase coverage? Could you add a comment which describes the goals of these tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Note that the header comment above says "Syntax", so this module is all about testing that the parser understands all combinations of syntax.