File: tests.expected

package info (click to toggle)
js-of-ocaml 6.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 37,932 kB
  • sloc: ml: 135,957; javascript: 58,364; ansic: 437; makefile: 422; sh: 12; perl: 4
file content (79 lines) | stat: -rw-r--r-- 3,087 bytes parent folder | download | duplicates (2)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
;; conditional
              a is true                     
                                b is false  
              a is true  
                         

;; nested conditionals
                                                     a is true and b is false  
                                                                            

;; not
                                
                    b is false  

;; and
                  true  
                    a is true  
                               
                                        
                            a is true and b is false  
                                                      
                                                     

;; or
                        
                   a is true  
                              
                     a or b is true  
                           a is true or b is false  
                                                    
                                 a or b is false  

;; strings
                           newline  
                         quote  

;; string comparisons
                      c is 1  
                              
                                   
                       c is not 2  

;; version comparisons
                                                   
                                (4 1 1) = (4 1 1)  
                                                   
                                 (4 1 1) <> (4 1 0)  
                                                     
                                 (4 1 1) <> (4 1 2)  
                                                     
                                 (4 1 1) <= (4 1 1)  
                                 (4 1 1) <= (4 1 2)  
                                 (4 1 1) >= (4 1 0)  
                                 (4 1 1) >= (4 1 1)  
                                                     
                                (4 1 1) > (4 1 0)  
                                                   
                                                   

;; version comparisons: lexicographic order
                                                   
                                                   
                                (4 1 1) < (4 1 2)  
                                                   
                                (4 1 1) < (4 2 0)  
                                (4 1 1) < (5 0 1)  
                                                   

;; strings
(global $s (ref eq) (array.new_fixed $bytes 4 (i32.const 97) (i32.const 98) (i32.const 99) (i32.const 100)))
(array.new_fixed $bytes 4 (i32.const 97) (i32.const 98) (i32.const 99) (i32.const 100))
(array.new_fixed $bytes 4 (i32.const 92) (i32.const 39) (i32.const 40) (i32.const 10))
                  (array.new_fixed $bytes 4 (i32.const 97) (i32.const 98) (i32.const 99) (i32.const 100))  
                         (array.new_fixed $bytes 4 (i32.const 97) (i32.const 98) (i32.const 99) (i32.const 100))  

;; chars
(array.new_fixed $bytes 1 (i32.const 48))
(array.new_fixed $bytes 1 (i32.const 10))