| Class | TestDataTypes |
| In: |
lib/swxruby/services/test_data_types.rb
|
| Parent: | Object |
Data type test service. Run the TestDataTypes.fla to run through all these tests using SWX RPC.
@package default @author Aral Balkan
Returns the array [‘It’, ‘works’] @author Aral Balkan
# File lib/swxruby/services/test_data_types.rb, line 35
35: def test_array
36: %w(It works)
37: end
Returns the associative array [‘it’ => ‘works’, ‘number’ => 42] @author Aral Balkan
# File lib/swxruby/services/test_data_types.rb, line 75
75: def test_associative_array
76: {'it' => 'works', 'number' => 42}
77: end
Returns the boolean false. @author Aral Balkan
# File lib/swxruby/services/test_data_types.rb, line 27
27: def test_false
28: false
29: end
Returns the float 42.12345. @author Aral Balkan
# File lib/swxruby/services/test_data_types.rb, line 59
59: def test_float
60: 42.12345
61: end
Returns the integer 42. @author Aral Balkan
# File lib/swxruby/services/test_data_types.rb, line 51
51: def test_integer
52: 42
53: end
Returns the nested array [‘It’, [‘also’], ‘works] @author Aral Balkan
# File lib/swxruby/services/test_data_types.rb, line 43
43: def test_nested_array
44: ['It', ['also'], 'works']
45: end
Returns null. @author Aral Balkan
# File lib/swxruby/services/test_data_types.rb, line 91
91: def test_null
92: nil
93: end
Returns the string "It works!" @author Aral Balkan
# File lib/swxruby/services/test_data_types.rb, line 67
67: def test_string
68: "It works!"
69: end