Read about our upcoming Code of Conduct on this issue

This instance will be upgraded to Heptapod 0.28.1 on 2022-01-26 at 16:00 UTC+1 (a few minutes of down time)

Commit 159f5222 authored by Leon Arnott's avatar Leon Arnott
Browse files

Fixed the (str:) macro alias mysteriously not existing, as intended in 412b30269ce6.

Closes #163.
parent 2f5d26ab0946
...@@ -2,6 +2,12 @@ ...@@ -2,6 +2,12 @@
Rough documentation is at http://twine2.neocities.org/. See below for compilation instructions. Rough documentation is at http://twine2.neocities.org/. See below for compilation instructions.
###3.0.2 changes:
###Bugfixes
* Fixed the (str:) macro alias added in 3.0.0 mysteriously not actually having been added.
###3.0.1 changes: ###3.0.1 changes:
####Bugfixes ####Bugfixes
......
window.storyFormat({"name":"Harlowe","version":"3.0.1","author":"Leon Arnott","description":"The default story format for Twine 2. See its <a href='http://twine2.neocities.org/' target='_blank' rel='noopener noreferrer'>documentation</a>.","image":"icon.svg","url":"http://twinery.org/","license":"Zlib","proofing":false,"source":"","setup":""}); window.storyFormat({"name":"Harlowe","version":"3.0.2","author":"Leon Arnott","description":"The default story format for Twine 2. See its <a href='http://twine2.neocities.org/' target='_blank' rel='noopener noreferrer'>documentation</a>.","image":"icon.svg","url":"http://twinery.org/","license":"Zlib","proofing":false,"source":"","setup":""});
\ No newline at end of file \ No newline at end of file
...@@ -89,7 +89,7 @@ define(['macros', 'utils', 'utils/operationutils', 'datatypes/colour', 'internal ...@@ -89,7 +89,7 @@ define(['macros', 'utils', 'utils/operationutils', 'datatypes/colour', 'internal
#string #string
*/ */
(["text", "string"], (["text", "string", "str"],
/* /*
Since only primitives (and arrays) are passed into this, and we use Since only primitives (and arrays) are passed into this, and we use
JS's default toString() for primitives, we don't need JS's default toString() for primitives, we don't need
......
{ {
"name": "twine-harlowe", "name": "twine-harlowe",
"version": "3.0.1", "version": "3.0.2",
"author": "Leon Arnott", "author": "Leon Arnott",
"description": "The default runtime for Twine 2 stories", "description": "The default runtime for Twine 2 stories",
"license": "Zlib", "license": "Zlib",
......
...@@ -41,6 +41,9 @@ describe("primitive value macros", function() { ...@@ -41,6 +41,9 @@ describe("primitive value macros", function() {
it("is aliased as (string:)", function() { it("is aliased as (string:)", function() {
expect("(string: 2)").markupToPrint("2"); expect("(string: 2)").markupToPrint("2");
}); });
it("is aliased as (str:)", function() {
expect("(str: 2)").markupToPrint("2");
});
}); });
describe("the (random:) macro", function() { describe("the (random:) macro", function() {
it("accepts 1 or 2 whole numbers", function() { it("accepts 1 or 2 whole numbers", function() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment