Blame view

bower_components/prism/tests/languages/scss/operator_feature.test 1.08 KB
eb240478   Luigi Serra   public room cards...
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
33
34
35
36
37
38
  4 - 2;

  4 + 2;

  4 * 2;

  4 / 2;

  4 % 2;

  4 == 2;

  4 != 2;

  4 < 2;

  4 <= 2;

  4 > 2;

  4 >= 2;

  true and false

  false or true

  not true

  

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

  

  [

  	"4 ", ["operator", "-"], " 2", ["punctuation", ";"],

  	"\r\n4 ", ["operator", "+"], " 2", ["punctuation", ";"],

  	"\r\n4 ", ["operator", "*"], " 2", ["punctuation", ";"],

  	"\r\n4 ", ["operator", "/"], " 2", ["punctuation", ";"],

  	"\r\n4 ", ["operator", "%"], " 2", ["punctuation", ";"],

  	"\r\n4 ", ["operator", "=="], " 2", ["punctuation", ";"],

  	"\r\n4 ", ["operator", "!="], " 2", ["punctuation", ";"],

  	"\r\n4 ", ["operator", "<"], " 2", ["punctuation", ";"],

  	"\r\n4 ", ["operator", "<="], " 2", ["punctuation", ";"],

  	"\r\n4 ", ["operator", ">"], " 2", ["punctuation", ";"],

  	"\r\n4 ", ["operator", ">="], " 2", ["punctuation", ";"],

  

  	["boolean", "true"], ["operator", "and"], ["boolean", "false"],

  	["boolean", "false"], ["operator", "or"], ["boolean", "true"],

  	["operator", "not"], ["boolean", "true"]

  ]

  

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

  

  Checks for operators.