Blame view

bower_components/prism/tests/languages/lua/string_feature.test 547 Bytes
f748e9cf   Luigi Serra   new controllet an...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  ""

  "Fo\"obar"

  "Foo\

  bar\z

  baz"

  ''

  'Fo\'obar'

  'Foo\

  bar\z

  baz'

  [[Foo

  bar]]

  [====[Foo

  bar]=====] ]===]

  baz]====]

  

  ----------------------------------------------------

  

  [

  	["string", "\"\""],

  	["string", "\"Fo\\\"obar\""],

  	["string", "\"Foo\\\r\nbar\\z\r\nbaz\""],

  	["string", "''"],

  	["string", "'Fo\\'obar'"],

  	["string", "'Foo\\\r\nbar\\z\r\nbaz'"],

  	["string", "[[Foo\r\nbar]]"],

  	["string", "[====[Foo\r\nbar]=====] ]===]\r\nbaz]====]"]

  ]

  

  ----------------------------------------------------

  

  Checks for strings.