Skip to content

Commit

Permalink
Add tests for #168, and temporarily disabled them
Browse files Browse the repository at this point in the history
  • Loading branch information
burodepeper committed Mar 13, 2017
1 parent 7cca8c9 commit d807e35
Show file tree
Hide file tree
Showing 2 changed files with 326 additions and 0 deletions.
1 change: 1 addition & 0 deletions spec/ass-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ path = require 'path'
# Manually specify {fixtures} if you only want to run specific tests.
# A {fixture} is a relative path + filename (without extension).
# fixtures = [
# "blocks/fenced-code"
# # "flavors/math"
# # "inlines/entities"
# # "issues"
Expand Down
325 changes: 325 additions & 0 deletions spec/fixtures/blocks/fenced-code.ass
Original file line number Diff line number Diff line change
Expand Up @@ -340,3 +340,328 @@
}
}
}

# @issue-168a
# "~~~~{.js}"+
# "let answer = 42"+
# "~~~~"+
# "> Quote" {
# text.md {
# fenced.code.md {
# "~~~~": punctuation.md
# "{": punctuation.md
# ".js": language.constant.md
# "}": punctuation.md
# embedded.source.js {
# "let answer = 42"
# }
# "~~~~": punctuation.md
# }
# quote.markup.md {
# ">": punctuation.md
# " "
# "Quote"
# }
# }
# }

# @issue-168b
# "~~~~{js}"+
# "let answer = 42"+
# "~~~~"+
# "> Quote" {
# text.md {
# fenced.code.md {
# "~~~~": punctuation.md
# "{": punctuation.md
# "js": language.constant.md
# "}": punctuation.md
# embedded.source.js {
# "let answer = 42"
# }
# "~~~~": punctuation.md
# }
# quote.markup.md {
# ">": punctuation.md
# " "
# "Quote"
# }
# }
# }

@issue-168c
"~~~~js"+
"let answer = 42"+
"~~~~"+
"> Quote" {
text.md {
fenced.code.md {
"~~~~": punctuation.md
"js": language.constant.md
""
embedded.source.js {
"let answer = 42"
}
"~~~~": punctuation.md
}
quote.markup.md {
">": punctuation.md
" "
"Quote"
}
}
}

@issue-168d
"~~~~ js"+
"let answer = 42"+
"~~~~"+
"> Quote" {
text.md {
fenced.code.md {
"~~~~": punctuation.md
" "
"js": language.constant.md
""
embedded.source.js {
"let answer = 42"
}
"~~~~": punctuation.md
}
quote.markup.md {
">": punctuation.md
" "
"Quote"
}
}

}

@issue-168e
"~~~~{.js }"+
"let answer = 42"+
"~~~~"+
"> Quote" {
text.md {
fenced.code.md {
"~~~~": punctuation.md
"{": punctuation.md
".js": language.constant.md
" "
"}": punctuation.md
embedded.source.js {
"let answer = 42"
}
"~~~~": punctuation.md
}
quote.markup.md {
">": punctuation.md
" "
"Quote"
}
}
}

@issue-168f
"~~~~{js }"+
"let answer = 42"+
"~~~~"+
"> Quote" {
text.md {
fenced.code.md {
"~~~~": punctuation.md
"{": punctuation.md
"js": language.constant.md
" "
"}": punctuation.md
embedded.source.js {
"let answer = 42"
}
"~~~~": punctuation.md
}
quote.markup.md {
">": punctuation.md
" "
"Quote"
}
}
}

# @issue-168g
# "~~~~{.unknownscript}"+
# "let answer = 42"+
# "~~~~"+
# "> Quote" {
# text.md {
# fenced.code.md {
# "~~~~": punctuation.md
# "{": punctuation.md
# ".unknownscript": language.constant.md
# "}": punctuation.md
# embedded.source {
# "let answer = 42"
# }
# "~~~~": punctuation.md
# }
# quote.markup.md {
# ">": punctuation.md
# " "
# "Quote"
# }
# }
# }

# @issue-168h
# "~~~~{unknownscript}"+
# "let answer = 42"+
# "~~~~"+
# "> Quote" {
# text.md {
# fenced.code.md {
# "~~~~": punctuation.md
# "{": punctuation.md
# "unknownscript": language.constant.md
# "}": punctuation.md
# embedded.source {
# "let answer = 42"
# }
# "~~~~": punctuation.md
# }
# quote.markup.md {
# ">": punctuation.md
# " "
# "Quote"
# }
# }
# }

@issue-168i
"~~~~unknownscript"+
"let answer = 42"+
"~~~~"+
"> Quote" {
text.md {
fenced.code.md {
"~~~~": punctuation.md
"unknownscript": language.constant.md
""
embedded.source {
"let answer = 42"
}
"~~~~": punctuation.md
}
quote.markup.md {
">": punctuation.md
" "
"Quote"
}
}
}

@issue-168j
"~~~~ unknownscript"+
"let answer = 42"+
"~~~~"+
"> Quote" {
text.md {
fenced.code.md {
"~~~~": punctuation.md
" "
"unknownscript": language.constant.md
""
embedded.source {
"let answer = 42"
}
"~~~~": punctuation.md
}
quote.markup.md {
">": punctuation.md
" "
"Quote"
}
}
}

@issue-168k
"~~~~{.unknownscript }"+
"let answer = 42"+
"~~~~"+
"> Quote" {
text.md {
fenced.code.md {
"~~~~": punctuation.md
"{": punctuation.md
".unknownscript": language.constant.md
" "
"}": punctuation.md
embedded.source {
"let answer = 42"
}
"~~~~": punctuation.md
}
quote.markup.md {
">": punctuation.md
" "
"Quote"
}
}
}

@issue-168l
"~~~~{unknownscript }"+
"let answer = 42"+
"~~~~"+
"> Quote" {
text.md {
fenced.code.md {
"~~~~": punctuation.md
"{": punctuation.md
"unknownscript": language.constant.md
" "
"}": punctuation.md
embedded.source {
"let answer = 42"
}
"~~~~": punctuation.md
}
quote.markup.md {
">": punctuation.md
" "
"Quote"
}
}
}

# @issue-168m
# "~~~~{.js"+
# "let answer = 42"+
# "~~~~"+
# "> Quote" {
# text.md {
# "~~~~{.js"
# "let answer = 42"
# fenced.code.md {
# "~~~~": punctuation.md
# embedded.source {
# "> Quote"
# }
# }
# }
# }

# @issue-168n
# "~~~~{js"+
# "let answer = 42"+
# "~~~~"+
# "> Quote" {
# text.md {
# "~~~~{js"
# "let answer = 42"
# fenced.code.md {
# "~~~~": punctuation.md
# embedded.source {
# "> Quote"
# }
# }
# }
# }

0 comments on commit d807e35

Please sign in to comment.