From 447c9b176225cdec6150eb119152c61a1a90a55e Mon Sep 17 00:00:00 2001 From: Julian Benda Date: Tue, 26 Sep 2023 14:07:47 +0200 Subject: [PATCH] Add Test for TURN() internal command --- ink/I030/metadata.json | 2 +- ink/I136/input.txt | 3 +++ ink/I136/metadata.json | 4 ++++ ink/I136/story.ink | 8 ++++++++ ink/I136/transcript.txt | 13 +++++++++++++ 5 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 ink/I136/input.txt create mode 100644 ink/I136/metadata.json create mode 100644 ink/I136/story.ink create mode 100644 ink/I136/transcript.txt diff --git a/ink/I030/metadata.json b/ink/I030/metadata.json index 176181f..277fbd8 100644 --- a/ink/I030/metadata.json +++ b/ink/I030/metadata.json @@ -1,4 +1,4 @@ { "oneLineDescription": "Nested turns since", - "tags": ["builtins"] + "tags": ["builtins", "turns"] } diff --git a/ink/I136/input.txt b/ink/I136/input.txt new file mode 100644 index 0000000..e8183f0 --- /dev/null +++ b/ink/I136/input.txt @@ -0,0 +1,3 @@ +1 +1 +1 diff --git a/ink/I136/metadata.json b/ink/I136/metadata.json new file mode 100644 index 0000000..21b552f --- /dev/null +++ b/ink/I136/metadata.json @@ -0,0 +1,4 @@ +{ + "oneLineDescription": "Turns since, for whole story and interemidate choices", + "tags": ["builtins", "turns"] +} diff --git a/ink/I136/story.ink b/ink/I136/story.ink new file mode 100644 index 0000000..3abc9cb --- /dev/null +++ b/ink/I136/story.ink @@ -0,0 +1,8 @@ +- History {TURNS()}/{TURNS_SINCE(-> a)}/{TURNS_SINCE(-> b)}/{TURNS_SINCE(-> c)} ++ (a) a +- History {TURNS()}/{TURNS_SINCE(-> a)}/{TURNS_SINCE(-> b)}/{TURNS_SINCE(-> c)} ++ (b)b +- History {TURNS()}/{TURNS_SINCE(-> a)}/{TURNS_SINCE(-> b)}/{TURNS_SINCE(-> c)} ++ (c)c +History {TURNS()}/{TURNS_SINCE(-> a)}/{TURNS_SINCE(-> b)}/{TURNS_SINCE(-> c)} +-> END diff --git a/ink/I136/transcript.txt b/ink/I136/transcript.txt new file mode 100644 index 0000000..8132529 --- /dev/null +++ b/ink/I136/transcript.txt @@ -0,0 +1,13 @@ +History 0/-1/-1/-1 + +1: a +?> a +History 1/0/-1/-1 + +1: b +?> b +History 2/1/0/-1 + +1: c +?> c +History 3/2/1/0