You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ These two characters should precede each test line, so that Asar sees them as co
53
53
* 2 hex digits - a byte for it to check for
54
54
* You can specify more than one, like in the examples below, and it will automatically increment the offset.
55
55
* A line starting with `+` tells the testing app to patch the SMW ROM instead of creating a new ROM
56
-
*`errEXXXX` and `warnWXXXX` (where `XXXX` is an ID number) means that the test is expected to throw that specific error or warning while patching. The test will succeed only if the number and order of errors and warnings thrown exactly matches what's specified here. Be wary that Asar uses multiple passes and throws errors and warnings across multiple of them. This can make the actual order in which errors and warnings are thrown a bit unintuitive.
56
+
*`errE{name}` and `warnW{name}` (where `{name}` is the name of an error or warning) means that the test is expected to throw that specific error or warning while patching. The test will succeed only if the number and order of errors and warnings thrown exactly matches what's specified here. Be wary that Asar uses multiple passes and throws errors and warnings across multiple of them. This can make the actual order in which errors and warnings are thrown a bit unintuitive.
57
57
58
58
In addition to the format mentioned above, it's also possible to check for user prints a patch is expected to output (by `print`, `error`, `warn` or `assert` commands). This is done by starting the line with one of the following sequences:
59
59
```
@@ -75,17 +75,17 @@ This line tests that `22`, `20`, `80` and `90` were written to the ROM offset `0
75
75
;`007606 22 20 80 90
76
76
```
77
77
78
-
This line tests that assembling the patch throws error `5117` twice and warning `1030` once.
78
+
This line tests that assembling the patch throws error `Eunknown_command` twice and warning `Wfeature_deprecated` once.
79
79
```
80
-
;`errE5117
81
-
;`errE5117
82
-
;`warnW1030
80
+
;`errEunknown_command
81
+
;`errEunknown_command
82
+
;`warnWfeature_deprecated
83
83
```
84
84
85
-
This line tests that the byte `FF` was written to the start of the ROM, that the string `This is a print.` was printed and that the string `This is a user error.` was output via the error command (which itself also causes error `E5159`to be thrown once).
85
+
This line tests that the byte `FF` was written to the start of the ROM, that the string `This is a print.` was printed and that the string `This is a user error.` was output via the error command (which itself also causes error `Eerror_command`to be thrown once).
Copy file name to clipboardExpand all lines: docs/changelog/index.html
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,11 @@ <h3>Contributors:</h3>
47
47
<li>randomdude999</li>
48
48
</ul>
49
49
50
+
<h3>Notes:</h3>
51
+
<ul>
52
+
<li>The primary purpose of this release is to be a stepping stone towards Asar 2.0. For this purpose, a lot of features have been deprecated and will now throw warnings. Please fix any of those warnings you come across in your patches to assure they will still assemble in Asar 2.0.</li>
53
+
</ul></div>
54
+
50
55
<h3>New features:</h3>
51
56
<ul>
52
57
<li>The Asar test suite can now verify user-printable strings. (RPG Hacker)</li>
@@ -64,6 +69,11 @@ <h3>Bug fixes:</h3>
64
69
<li><code>'''</code> and <code>';'</code> are now valid can now be used without causing errors. (randomdude999, RPG Hacker)</li>
65
70
</ul></div>
66
71
72
+
<h3>Deprecated features:</h3>
73
+
<ul>
74
+
<li>Warning and error IDs: Asar now uses named warnings and errors. (p4plus2, RPG Hacker)</li>
0 commit comments