forked from natalie-lang/natalie
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This replaces some globals with constants Upstream fix: ruby/spec#1118
- Loading branch information
Showing
2 changed files
with
24 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,26 @@ | ||
$complex_key_1 = <<EOY | ||
? # PLAY SCHEDULE | ||
- Detroit Tigers | ||
- Chicago Cubs | ||
: | ||
- 2001-07-23 | ||
module YAMLSpecs | ||
COMPLEX_KEY_1 = <<~EOY | ||
? # PLAY SCHEDULE | ||
- Detroit Tigers | ||
- Chicago Cubs | ||
: | ||
- 2001-07-23 | ||
? [ New York Yankees, | ||
Atlanta Braves ] | ||
: [ 2001-07-02, 2001-08-12, | ||
2001-08-14 ] | ||
EOY | ||
? [ New York Yankees, | ||
Atlanta Braves ] | ||
: [ 2001-07-02, 2001-08-12, | ||
2001-08-14 ] | ||
EOY | ||
|
||
$to_yaml_hash = | ||
<<EOY | ||
- | ||
avg: 0.278 | ||
hr: 65 | ||
name: Mark McGwire | ||
- | ||
avg: 0.288 | ||
hr: 63 | ||
name: Sammy Sosa | ||
EOY | ||
MULTIDOCUMENT = <<~EOY | ||
--- | ||
- Mark McGwire | ||
- Sammy Sosa | ||
- Ken Griffey | ||
$multidocument = <<EOY | ||
--- | ||
- Mark McGwire | ||
- Sammy Sosa | ||
- Ken Griffey | ||
# Team ranking | ||
--- | ||
- Chicago Cubs | ||
- St Louis Cardinals | ||
EOY | ||
# Team ranking | ||
--- | ||
- Chicago Cubs | ||
- St Louis Cardinals | ||
EOY | ||
end |
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