Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
283 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Universe marshy now. The marshy stuff evaporates downstream. Sense | ||
rapids | ||
upstream. Killing. Device downstream. Sense shallows and say Hi,. | ||
That powers the force. Field sense shallows hatchery power. | ||
Hi .. What's. your. name?. | ||
Hydro. Power spring when snowmelt then powers | ||
insulated bear hatchery !. | ||
Powers felt; powers feel snowmelt themselves. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
use Test::Simple tests => 9; | ||
|
||
use Language::Homespring; | ||
require "t/harness.inc"; | ||
|
||
# | ||
# powers | ||
# Generates electricity for everything downstream of the 'powers' node | ||
# | ||
|
||
ok(test_hs_return("bear hatchery foo powers", ['','','','foo','foo','foo'])); | ||
ok(test_hs_return("bear hatchery foo", ['','','','','','',''])); | ||
ok(test_hs_return("bear hatchery foo powers marshy snowmelt", ['','','','foo','foo','','',''])); | ||
|
||
# | ||
# hydro power | ||
# Generates electricity only when supplied with water. This can be destroyed by snowmelt | ||
# | ||
|
||
ok(test_hs_return("bear hatchery foo hydro. power", ['','','','',''])); | ||
ok(test_hs_return("bear hatchery foo hydro. power bar", ['','','','foo','foo','foo'])); | ||
ok(test_hs_return("bear hatchery foo hydro. power bar marshy snowmelt", ['','','','foo','foo','','',''])); | ||
|
||
# | ||
# power invert | ||
# Blocks electricity; generates electricity when not powered. This can be destroyed by snowmelt. | ||
# | ||
|
||
ok(test_hs_return("bear hatchery foo power. invert", ['','','','foo','foo','foo'])); | ||
ok(test_hs_return("bear hatchery foo power. invert powers", ['','','','',''])); | ||
ok(test_hs_return("bear hatchery foo power. invert marshy snowmelt", ['','','','foo','foo','',''])); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
use Test::Simple tests => 5; | ||
|
||
use Language::Homespring; | ||
require "t/harness.inc"; | ||
|
||
# | ||
# marshy | ||
# Snowmelts take two turns to pass through | ||
# | ||
|
||
ok(test_hs_return("universe hatchery foo powers marshy marshy snowmelt", ['','','','homelessfoo','homelessfoo',''])); | ||
ok(test_hs_return("universe hatchery foo powers snowmelt", ['','','','','',''])); | ||
ok(test_hs_return("marshy hatchery foo powers", ['','','','homelessfoo','homelessfoo','homelessfoo'])); | ||
|
||
# | ||
# shallows | ||
# Similar to marshy, but it affects mature salmon. | ||
# | ||
|
||
ok(test_hs_return("shallows hatchery foo powers", ['','','','foo','homelessfoo','homelessfoo'])); | ||
|
||
# | ||
# rapids | ||
# Similar to shallows, but for young salmon. | ||
# | ||
|
||
ok(test_hs_return("rapids hatchery foo powers", ['','','','homeless','foohomeless','foohomeless'])); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
use Test::Simple tests => 4; | ||
|
||
use Language::Homespring; | ||
require "t/harness.inc"; | ||
|
||
# | ||
# bear | ||
# Eats mature salmon. | ||
# | ||
|
||
ok(test_hs_return("bar hatchery foo powers", ['','','','homelessfoo','homelessfoo'])); | ||
ok(test_hs_return("bear hatchery foo powers", ['','','','foo','foo'])); | ||
|
||
# | ||
# young bear | ||
# Like a bear, but only kills every other mature fish. | ||
# | ||
|
||
ok(test_hs_return("young. bear hatchery foo powers", ['','','','foo','homelessfoo','foo','homelessfoo'])); | ||
|
||
# | ||
# bird | ||
# Like a bear, but kills young fish. | ||
# | ||
|
||
ok(test_hs_return("bird hatchery foo powers", ['','','','homeless','homeless'])); |
Oops, something went wrong.