-
Notifications
You must be signed in to change notification settings - Fork 461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[test] Remove duplicate tests #1314
Conversation
@@ -183,220 +183,6 @@ | |||
"integer representation too long" | |||
) | |||
|
|||
;; Signed LEB128 must not be overlong | |||
(assert_malformed |
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.
This one and several tests below are duplicated at:
Line 458 in f607ec9
;; Signed LEB128 must not be overlong |
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.
Also
spec/test/core/binary-leb128.wast
Line 481 in f607ec9
;; Signed LEB128 must not be overlong |
) | ||
|
||
;; Signed LEB128s sign-extend | ||
(assert_malformed |
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.
This one and several tests below are duplicated at:
Line 672 in f607ec9
(assert_malformed |
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.
Also
spec/test/core/binary-leb128.wast
Line 883 in f607ec9
;; Signed LEB128s sign-extend |
) | ||
|
||
;; Unsigned LEB128s zero-extend | ||
(assert_malformed |
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.
Two tests duplicated at
Line 501 in f607ec9
;; Unsigned LEB128s zero-extend |
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.
Also
spec/test/core/binary-leb128.wast
Line 524 in f607ec9
;; Unsigned LEB128s zero-extend |
) | ||
"integer representation too long" | ||
) | ||
(assert_malformed |
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.
Duplicated at
Line 438 in f607ec9
(assert_malformed |
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.
Also
spec/test/core/binary-leb128.wast
Line 404 in f607ec9
(assert_malformed |
|
||
|
||
;; Unsigned LEB128 must not be overlong | ||
(assert_malformed |
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.
Duplicated at
Line 176 in f607ec9
;; Unsigned LEB128 must not be overlong |
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.
Also
spec/test/core/binary-leb128.wast
Line 216 in f607ec9
;; Unsigned LEB128 must not be overlong |
test/core/binary.wast
Outdated
@@ -183,220 +183,6 @@ | |||
"integer representation too long" |
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.
This test is duplicated at
Line 372 in f607ec9
;; Unsigned LEB128 must not be overlong |
In this file I generally deleted the first occurrence and left the second occurrence (because it looked like more tests in the second part). For this test I did the same, but GitHub here shows the diff as if I removed the second occurrence (at line 373)
@@ -405,27 +405,6 @@ | |||
"type mismatch" | |||
) | |||
|
|||
(assert_invalid |
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 are duplicated just above, at lines 389-406.
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.
Thanks for spotting! Git merge is dangerous sometimes.
Now I noticed that many tests added to |
@@ -51,77 +51,6 @@ | |||
(assert_malformed (module binary "\00asm" "\01\00\00\00" "\81\00\01\00") "malformed section id") | |||
(assert_malformed (module binary "\00asm" "\01\00\00\00" "\ff\00\01\00") "malformed section id") | |||
|
|||
;; Unsigned LEB128 can have non-minimal length |
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.
spec/test/core/binary-leb128.wast
Line 1 in f607ec9
;; Unsigned LEB128 can have non-minimal length |
"\00\82\80\80\80\00" ;; no max, minimum 2 | ||
) | ||
|
||
;; Signed LEB128 can have non-minimal length |
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.
spec/test/core/binary-leb128.wast
Line 157 in f607ec9
;; Signed LEB128 can have non-minimal length |
@@ -173,584 +102,6 @@ | |||
"integer representation too long" | |||
) | |||
|
|||
;; Unsigned LEB128 must not be overlong |
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.
spec/test/core/binary-leb128.wast
Line 216 in f607ec9
;; Unsigned LEB128 must not be overlong |
"integer representation too long" | ||
) | ||
|
||
;; Signed LEB128 must not be overlong |
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.
spec/test/core/binary-leb128.wast
Line 481 in f607ec9
;; Signed LEB128 must not be overlong |
"integer representation too long" | ||
) | ||
|
||
;; Unsigned LEB128s zero-extend |
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.
spec/test/core/binary-leb128.wast
Line 524 in f607ec9
;; Unsigned LEB128s zero-extend |
) | ||
"integer too large" | ||
) | ||
(assert_malformed |
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.
spec/test/core/binary-leb128.wast
Line 730 in f607ec9
(assert_malformed |
"integer too large" | ||
) | ||
|
||
;; Signed LEB128s sign-extend |
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.
spec/test/core/binary-leb128.wast
Line 883 in f607ec9
;; Signed LEB128s sign-extend |
@@ -959,23 +310,6 @@ | |||
"integer too large" | |||
) | |||
|
|||
;; Local number is unsigned 32 bit |
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.
This one is duplicated just above.
"\0b" ;; end | ||
) | ||
|
||
(module binary |
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.
Moved this test and the next one to binary-leb128.wast
, because there're other tests checking encoding of table/memory index.
@gumb0, this PR is stale and has conflicts. Do you still intend to land it? |
50cc418
to
eea475e
Compare
eea475e
to
5f05d3b
Compare
I have rebassed it now and squached two commits, it should be reviewable. |
Cool, thanks! |
I noticed some tests that were duplicated after #1287.