kharon 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Gemfile.lock +4 -1
- data/README.md +29 -13
- data/dist/kharon-1.0.0.gem +0 -0
- data/doc/Kharon.html +4 -4
- data/doc/Kharon/Errors.html +1 -1
- data/doc/Kharon/Errors/Validation.html +1 -1
- data/doc/Kharon/Handlers.html +1 -1
- data/doc/Kharon/Handlers/Exceptions.html +1 -1
- data/doc/Kharon/Handlers/Messages.html +1 -1
- data/doc/Kharon/Validate.html +276 -0
- data/doc/Kharon/Validator.html +1 -1
- data/doc/_index.html +8 -4
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +140 -157
- data/doc/file_list.html +0 -3
- data/doc/index.html +140 -157
- data/doc/method_list.html +12 -6
- data/doc/top-level-namespace.html +1 -1
- data/lib/kharon.rb +1 -1
- data/lib/kharon/validate.rb +21 -0
- data/lib/kharon/validator.rb +19 -1
- data/lib/kharon/version.rb +1 -1
- data/spec/lib/kharon/validate_spec.rb +20 -0
- data/spec/lib/kharon/validator_spec.rb +87 -36
- data/spec/results.html +824 -689
- metadata +6 -3
- data/spec/utils/fake_config.yml +0 -0
@@ -0,0 +1,21 @@
|
|
1
|
+
module Kharon
|
2
|
+
# Module to include to use the #validate method in your own classes. It offers an easier way to validate datas than creating the validator from scratch.
|
3
|
+
# @author Vincent Courtois <courtois.vincent@outlook.com>
|
4
|
+
module Validate
|
5
|
+
# Validates the datas passed as parameter with a Kharon::Validator and the given instructions.
|
6
|
+
# @param [Hash] datas the parameters to validate with the given instructions.
|
7
|
+
# @param [Proc] block the instructions to apply on the validator.
|
8
|
+
# @return [Hash] the validated and filtered datas.
|
9
|
+
def validate(datas, &block)
|
10
|
+
begin
|
11
|
+
validator = Kharon::Validator.new(datas)
|
12
|
+
validator.instance_eval(&block)
|
13
|
+
return validator.filtered
|
14
|
+
rescue Kharon::Errors::Validation => exception
|
15
|
+
raise exception
|
16
|
+
rescue Exception => exception
|
17
|
+
raise Kharon::Errors::Validation.new({type: "standard", exception: exception.class.to_s, backtrace: exception.backtrace, message: exception.message})
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
data/lib/kharon/validator.rb
CHANGED
@@ -21,7 +21,7 @@ module Kharon
|
|
21
21
|
# @example create a new instance of validator.
|
22
22
|
# @validator = Kharon::Validator.new({key: "value"})
|
23
23
|
def initialize(datas)
|
24
|
-
@datas = datas
|
24
|
+
@datas = Hash[datas.map { |k, v| [k.to_sym, v] }]
|
25
25
|
@filtered = Hash.new
|
26
26
|
@handler = Kharon.errors_handler
|
27
27
|
end
|
@@ -146,6 +146,14 @@ module Kharon
|
|
146
146
|
match?(key, /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/) ? store(key, ->(item){item}, options) : raise_type_error(key, "Email")
|
147
147
|
end
|
148
148
|
|
149
|
+
def method_missing(name, *arguments, &block)
|
150
|
+
respond_to?(name) ? datas[name] : super
|
151
|
+
end
|
152
|
+
|
153
|
+
def respond_to?(name, include_private = false)
|
154
|
+
datas.keys.include?(name.to_sym) ? true : super
|
155
|
+
end
|
156
|
+
|
149
157
|
private
|
150
158
|
|
151
159
|
# This method is executed before any call to a public method.
|
@@ -296,6 +304,14 @@ module Kharon
|
|
296
304
|
raise_error(type: "equals", key: key, supposed: value, found: datas[key]) unless datas[key] == value
|
297
305
|
end
|
298
306
|
|
307
|
+
# Checks if the value associated with the given key is equal to the given key.
|
308
|
+
# @param [Object] key the key associated with the value to check.
|
309
|
+
# @param [Object] value the key to compare the currently validated key with.
|
310
|
+
# @raise [ArgumentError] if the initial value is not equal to the given value.
|
311
|
+
def equals_key?(key, value)
|
312
|
+
raise_error(type: "equals", key: key, supposed: datas[value], found: datas[key]) unless datas[key] == datas[value]
|
313
|
+
end
|
314
|
+
|
299
315
|
# Checks if the value associated with the given key has the given required keys.
|
300
316
|
# @param [Object] key the key associated with the value to check.
|
301
317
|
# @param [Array] required_keys the keys that the initial Hash typed value should contain.
|
@@ -352,6 +368,8 @@ module Kharon
|
|
352
368
|
in_array?(key, options[:in])
|
353
369
|
elsif(options.has_key?(:equals))
|
354
370
|
equals_to?(key, options[:equals])
|
371
|
+
elsif(options.has_key?(:equals_key))
|
372
|
+
equals_key?(key, options[:equals_key])
|
355
373
|
end
|
356
374
|
options.has_key?(:rename) ? (@filtered[options[:rename]] = value) : (@filtered[key] = value)
|
357
375
|
end
|
data/lib/kharon/version.rb
CHANGED
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
class DummyClass
|
4
|
+
include Kharon::Validate
|
5
|
+
end
|
6
|
+
|
7
|
+
describe "Validate" do
|
8
|
+
|
9
|
+
let(:dummy) { DummyClass.new }
|
10
|
+
|
11
|
+
context "validate" do
|
12
|
+
it "correctly validates a hash" do
|
13
|
+
expect(dummy.validate({key: "1"}) { integer :key, required: true }).to eq({key: 1})
|
14
|
+
end
|
15
|
+
|
16
|
+
it "fails when an error is raised by validation" do
|
17
|
+
expect(->{dummy.validate({key: "something"}) {integer :key}}).to raise_error(Kharon::Errors::Validation)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -91,6 +91,24 @@ shared_examples "options" do |process|
|
|
91
91
|
end
|
92
92
|
end
|
93
93
|
|
94
|
+
context ":equals_key" do
|
95
|
+
it "suceeds when the key is present and equals to the other key" do
|
96
|
+
validator = Kharon::Validator.new(comparable_datas)
|
97
|
+
validator.send(process, comparable_datas.keys.first, :equals_key => comparable_datas.keys[1])
|
98
|
+
expect(validator.filtered).to eq(comparable_filtered)
|
99
|
+
end
|
100
|
+
|
101
|
+
it "fails when the key is present, but not equals to the other key" do
|
102
|
+
validator = Kharon::Validator.new(comparable_invalid)
|
103
|
+
expect(->{validator.send(process, comparable_invalid.keys.first, :equals_key => comparable_invalid.keys[1])}).to raise_error(Kharon::Errors::Validation)
|
104
|
+
end
|
105
|
+
|
106
|
+
it "fails when the key to compare the validated key with is not in the hash" do
|
107
|
+
validator = Kharon::Validator.new(comparable_invalid)
|
108
|
+
expect(->{validator.send(process, comparable_invalid.keys.first, :equals_key => nil)}).to raise_error(Kharon::Errors::Validation)
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
94
112
|
context ":extract" do
|
95
113
|
it "etracts the data when given at true" do
|
96
114
|
validator = Kharon::Validator.new(valid_datas)
|
@@ -218,9 +236,12 @@ end
|
|
218
236
|
|
219
237
|
describe "Validator" do
|
220
238
|
context "integer" do
|
221
|
-
let(:valid_datas)
|
222
|
-
let(:valid_filtered)
|
223
|
-
let(:invalid_datas)
|
239
|
+
let(:valid_datas) { {is_an_integer: "1000"} }
|
240
|
+
let(:valid_filtered) { {is_an_integer: 1000} }
|
241
|
+
let(:invalid_datas) { {is_not_an_integer: "something else"} }
|
242
|
+
let(:comparable_datas) { {first: "1000", second: "1000"} }
|
243
|
+
let(:comparable_invalid) { {first: "1000", second: "2000"} }
|
244
|
+
let(:comparable_filtered) { {first: 1000} }
|
224
245
|
|
225
246
|
it "succeeds when given an integer" do
|
226
247
|
validator = Kharon::Validator.new(valid_datas)
|
@@ -245,9 +266,12 @@ describe "Validator" do
|
|
245
266
|
end
|
246
267
|
|
247
268
|
context "numeric" do
|
248
|
-
let(:valid_datas)
|
249
|
-
let(:valid_filtered)
|
250
|
-
let(:invalid_datas)
|
269
|
+
let(:valid_datas) { {is_a_double: "1000.5"} }
|
270
|
+
let(:valid_filtered) { {is_a_double: 1000.5} }
|
271
|
+
let(:invalid_datas) { {is_not_a_numeric: "something else"} }
|
272
|
+
let(:comparable_datas) { {first: "1000.5", second: "1000.5"} }
|
273
|
+
let(:comparable_invalid) { {first: "1000.5", second: "2000.5"} }
|
274
|
+
let(:comparable_filtered) { {first: 1000.5} }
|
251
275
|
|
252
276
|
it "succeeds when given an integer" do
|
253
277
|
validator = Kharon::Validator.new({is_an_integer: "1000"})
|
@@ -327,9 +351,12 @@ describe "Validator" do
|
|
327
351
|
end
|
328
352
|
|
329
353
|
context "text" do
|
330
|
-
let(:valid_datas)
|
331
|
-
let(:valid_filtered)
|
332
|
-
let(:
|
354
|
+
let(:valid_datas) { {is_a_string: "something"} }
|
355
|
+
let(:valid_filtered) { {is_a_string: "something"} }
|
356
|
+
let(:comparable_datas) { {first: "something", second: "something"} }
|
357
|
+
let(:comparable_invalid) { {first: "something", second: "something else"} }
|
358
|
+
let(:comparable_filtered) { {first: "something"} }
|
359
|
+
let(:invalid_datas) { {is_not_a_string: 1000} }
|
333
360
|
|
334
361
|
include_examples "type checker", "String", :text
|
335
362
|
|
@@ -352,10 +379,13 @@ describe "Validator" do
|
|
352
379
|
end
|
353
380
|
|
354
381
|
context "datetime" do
|
355
|
-
let(:date_time)
|
356
|
-
let(:valid_datas)
|
357
|
-
let(:valid_filtered)
|
358
|
-
let(:
|
382
|
+
let(:date_time) { DateTime.new }
|
383
|
+
let(:valid_datas) { {is_a_datetime: date_time.to_s} }
|
384
|
+
let(:valid_filtered) { {is_a_datetime: date_time} }
|
385
|
+
let(:comparable_datas) { {first: date_time.to_s, second: date_time.to_s} }
|
386
|
+
let(:comparable_invalid) { {first: date_time.to_s, second: (date_time+1).to_s} }
|
387
|
+
let(:comparable_filtered) { {first: date_time} }
|
388
|
+
let(:invalid_datas) { {is_not_a_datetime: "something else"} }
|
359
389
|
|
360
390
|
it "succeeds when given a valid datetime as a string" do
|
361
391
|
validator = Kharon::Validator.new(valid_datas)
|
@@ -380,10 +410,13 @@ describe "Validator" do
|
|
380
410
|
end
|
381
411
|
|
382
412
|
context "date" do
|
383
|
-
let(:date)
|
384
|
-
let(:valid_datas)
|
385
|
-
let(:valid_filtered)
|
386
|
-
let(:
|
413
|
+
let(:date) { Date.new }
|
414
|
+
let(:valid_datas) { {is_a_date: date.to_s} }
|
415
|
+
let(:valid_filtered) { {is_a_date: date} }
|
416
|
+
let(:comparable_datas) { {first: date.to_s, second: date.to_s} }
|
417
|
+
let(:comparable_invalid) { {first: date.to_s, second: (date+1).to_s} }
|
418
|
+
let(:comparable_filtered) { {first: date} }
|
419
|
+
let(:invalid_datas) { {is_not_a_date: "something else"} }
|
387
420
|
|
388
421
|
it "succeeds when given a valid date as a string" do
|
389
422
|
validator = Kharon::Validator.new(valid_datas)
|
@@ -408,9 +441,12 @@ describe "Validator" do
|
|
408
441
|
end
|
409
442
|
|
410
443
|
context "array" do
|
411
|
-
let(:valid_datas)
|
412
|
-
let(:valid_filtered)
|
413
|
-
let(:
|
444
|
+
let(:valid_datas) { {is_an_array: ["val1", "val2"]} }
|
445
|
+
let(:valid_filtered) { {is_an_array: ["val1", "val2"]} }
|
446
|
+
let(:comparable_datas) { {first: ["val1", "val2"], second: ["val1", "val2"]} }
|
447
|
+
let(:comparable_invalid) { {first: ["val1", "val2"], second: ["val1", "val3"]} }
|
448
|
+
let(:comparable_filtered) { {first: ["val1", "val2"]} }
|
449
|
+
let(:invalid_datas) { {is_not_an_array: 1000} }
|
414
450
|
|
415
451
|
include_examples "type checker", "Array", :array
|
416
452
|
|
@@ -421,9 +457,12 @@ describe "Validator" do
|
|
421
457
|
end
|
422
458
|
|
423
459
|
context "hash" do
|
424
|
-
let(:valid_datas)
|
425
|
-
let(:valid_filtered)
|
426
|
-
let(:
|
460
|
+
let(:valid_datas) { {is_a_hash: {key1: "val1", key2: "val2"}} }
|
461
|
+
let(:valid_filtered) { {is_a_hash: {key1: "val1", key2: "val2"}} }
|
462
|
+
let(:comparable_datas) { {first: {key1: "val1", key2: "val2"}, second: {key1: "val1", key2: "val2"}} }
|
463
|
+
let(:comparable_invalid) { {first: {key1: "val1", key2: "val2"}, second: {key1: "val1", key2: "val3"}} }
|
464
|
+
let(:comparable_filtered) { {first: {key1: "val1", key2: "val2"}} }
|
465
|
+
let(:invalid_datas) { {is_not_a_hash: 1000} }
|
427
466
|
|
428
467
|
include_examples "type checker", "Hash", :hash
|
429
468
|
|
@@ -452,9 +491,12 @@ describe "Validator" do
|
|
452
491
|
end
|
453
492
|
|
454
493
|
context "boolean" do
|
455
|
-
let(:valid_datas)
|
456
|
-
let(:valid_filtered)
|
457
|
-
let(:
|
494
|
+
let(:valid_datas) { {is_a_boolean: "true"} }
|
495
|
+
let(:valid_filtered) { {is_a_boolean: true} }
|
496
|
+
let(:comparable_datas) { {first: "true", second: "true"} }
|
497
|
+
let(:comparable_invalid) { {first: "true", second: "false"} }
|
498
|
+
let(:comparable_filtered) { {first: true} }
|
499
|
+
let(:invalid_datas) { {is_not_a_boolean: "anything else"} }
|
458
500
|
|
459
501
|
it "succeeds when given a boolean" do
|
460
502
|
validator = Kharon::Validator.new(valid_datas)
|
@@ -473,10 +515,13 @@ describe "Validator" do
|
|
473
515
|
end
|
474
516
|
|
475
517
|
context "ssid" do
|
476
|
-
let(:valid_ssid)
|
477
|
-
let(:valid_datas)
|
478
|
-
let(:valid_filtered)
|
479
|
-
let(:
|
518
|
+
let(:valid_ssid) { BSON::ObjectId.new }
|
519
|
+
let(:valid_datas) { {is_a_ssid: valid_ssid.to_s} }
|
520
|
+
let(:valid_filtered) { {is_a_ssid: valid_ssid} }
|
521
|
+
let(:comparable_datas) { {first: valid_ssid.to_s, second: valid_ssid.to_s} }
|
522
|
+
let(:comparable_invalid) { {first: valid_ssid.to_s, second: BSON::ObjectId.new.to_s} }
|
523
|
+
let(:comparable_filtered) { {first: valid_ssid} }
|
524
|
+
let(:invalid_datas) { {is_not_a_ssid: "anything else"} }
|
480
525
|
|
481
526
|
it "succeeds when given a valid SSID" do
|
482
527
|
validator = Kharon::Validator.new(valid_datas)
|
@@ -495,9 +540,12 @@ describe "Validator" do
|
|
495
540
|
end
|
496
541
|
|
497
542
|
context "box" do
|
498
|
-
let(:valid_datas)
|
499
|
-
let(:valid_filtered)
|
500
|
-
let(:
|
543
|
+
let(:valid_datas) { {is_a_box: "-2,-2.0,100,100.0"} }
|
544
|
+
let(:valid_filtered) { {is_a_box: [[-2, -2], [100, 100]]} }
|
545
|
+
let(:comparable_datas) { {first: "-2,-2.0,100,100.0", second: "-2,-2.0,100,100.0"} }
|
546
|
+
let(:comparable_invalid) { {first: "-2,-2.0,100,100.0", second: "-3,-2.0,100,100.0"} }
|
547
|
+
let(:comparable_filtered) { {first: [[-2, -2], [100, 100]]} }
|
548
|
+
let(:invalid_datas) { {is_not_a_box: "anything else"} }
|
501
549
|
|
502
550
|
before do
|
503
551
|
@validator = Kharon::Validator.new(valid_datas)
|
@@ -569,9 +617,12 @@ describe "Validator" do
|
|
569
617
|
end
|
570
618
|
|
571
619
|
context "email" do
|
572
|
-
let(:valid_datas)
|
573
|
-
let(:valid_filtered)
|
574
|
-
let(:
|
620
|
+
let(:valid_datas) { {is_an_email: "vincent.courtois@mycar-innovations.com"} }
|
621
|
+
let(:valid_filtered) { valid_datas }
|
622
|
+
let(:comparable_datas) { {first: "vincent.courtois@mycar-innovations.com", second: "vincent.courtois@mycar-innovations.com"} }
|
623
|
+
let(:comparable_invalid) { {first: "vincent.courtois@mycar-innovations.com", second: "vincent.courtois@safety-line.fr"} }
|
624
|
+
let(:comparable_filtered) { {first: "vincent.courtois@mycar-innovations.com"} }
|
625
|
+
let(:invalid_datas) { {is_not_an_email: "anything else"} }
|
575
626
|
|
576
627
|
it "succeeds when given a valid email" do
|
577
628
|
validator = Kharon::Validator.new(valid_datas)
|
data/spec/results.html
CHANGED
@@ -283,170 +283,195 @@ a {
|
|
283
283
|
<dl style="margin-left: 0px;">
|
284
284
|
<dt id="example_group_1" class="passed">Errors::Validation</dt>
|
285
285
|
<script type="text/javascript">moveProgressBar('0.3');</script>
|
286
|
-
<dd class="example passed"><span class="passed_spec_name">correctly stores the error hash</span><span class='duration'>0.
|
287
|
-
<script type="text/javascript">moveProgressBar('0.
|
288
|
-
<dd class="example passed"><span class="passed_spec_name">correctly return the JSON equivalent of the error hash as message</span><span class='duration'>0.
|
286
|
+
<dd class="example passed"><span class="passed_spec_name">correctly stores the error hash</span><span class='duration'>0.01460s</span></dd>
|
287
|
+
<script type="text/javascript">moveProgressBar('0.6');</script>
|
288
|
+
<dd class="example passed"><span class="passed_spec_name">correctly return the JSON equivalent of the error hash as message</span><span class='duration'>0.00019s</span></dd>
|
289
289
|
</dl>
|
290
290
|
</div>
|
291
291
|
<div id="div_group_2" class="example_group passed">
|
292
292
|
<dl style="margin-left: 0px;">
|
293
293
|
<dt id="example_group_2" class="passed">Handlers::Exceptions</dt>
|
294
|
-
<script type="text/javascript">moveProgressBar('
|
295
|
-
<dd class="example passed"><span class="passed_spec_name">always returns the same instance</span><span class='duration'>0.
|
294
|
+
<script type="text/javascript">moveProgressBar('0.9');</script>
|
295
|
+
<dd class="example passed"><span class="passed_spec_name">always returns the same instance</span><span class='duration'>0.00155s</span></dd>
|
296
296
|
</dl>
|
297
297
|
</div>
|
298
298
|
<div id="div_group_3" class="example_group passed">
|
299
299
|
<dl style="margin-left: 15px;">
|
300
300
|
<dt id="example_group_3" class="passed">#report_error</dt>
|
301
|
-
<script type="text/javascript">moveProgressBar('1.
|
302
|
-
<dd class="example passed"><span class="passed_spec_name">raises an error of the right type</span><span class='duration'>0.
|
301
|
+
<script type="text/javascript">moveProgressBar('1.2');</script>
|
302
|
+
<dd class="example passed"><span class="passed_spec_name">raises an error of the right type</span><span class='duration'>0.00083s</span></dd>
|
303
303
|
</dl>
|
304
304
|
</div>
|
305
305
|
<div id="div_group_4" class="example_group passed">
|
306
306
|
<dl style="margin-left: 0px;">
|
307
307
|
<dt id="example_group_4" class="passed">Handlers::Messages</dt>
|
308
|
-
<script type="text/javascript">moveProgressBar('1.
|
309
|
-
<dd class="example passed"><span class="passed_spec_name">can correctly store several errors</span><span class='duration'>0.
|
308
|
+
<script type="text/javascript">moveProgressBar('1.5');</script>
|
309
|
+
<dd class="example passed"><span class="passed_spec_name">can correctly store several errors</span><span class='duration'>0.00046s</span></dd>
|
310
310
|
</dl>
|
311
311
|
</div>
|
312
312
|
<div id="div_group_5" class="example_group passed">
|
313
313
|
<dl style="margin-left: 0px;">
|
314
|
-
<dt id="example_group_5" class="passed">
|
314
|
+
<dt id="example_group_5" class="passed">Validate</dt>
|
315
315
|
</dl>
|
316
316
|
</div>
|
317
317
|
<div id="div_group_6" class="example_group passed">
|
318
318
|
<dl style="margin-left: 15px;">
|
319
|
-
<dt id="example_group_6" class="passed">
|
320
|
-
<script type="text/javascript">moveProgressBar('
|
321
|
-
<dd class="example passed"><span class="passed_spec_name">
|
322
|
-
<script type="text/javascript">moveProgressBar('2.
|
323
|
-
<dd class="example passed"><span class="passed_spec_name">fails when
|
324
|
-
<script type="text/javascript">moveProgressBar('2.8');</script>
|
325
|
-
<dd class="example passed"><span class="passed_spec_name">fails when not given a numeric</span><span class='duration'>0.00013s</span></dd>
|
319
|
+
<dt id="example_group_6" class="passed">validate</dt>
|
320
|
+
<script type="text/javascript">moveProgressBar('1.8');</script>
|
321
|
+
<dd class="example passed"><span class="passed_spec_name">correctly validates a hash</span><span class='duration'>0.00161s</span></dd>
|
322
|
+
<script type="text/javascript">moveProgressBar('2.2');</script>
|
323
|
+
<dd class="example passed"><span class="passed_spec_name">fails when an error is raised by validation</span><span class='duration'>0.00015s</span></dd>
|
326
324
|
</dl>
|
327
325
|
</div>
|
328
326
|
<div id="div_group_7" class="example_group passed">
|
329
|
-
<dl style="margin-left:
|
330
|
-
<dt id="example_group_7" class="passed">
|
327
|
+
<dl style="margin-left: 0px;">
|
328
|
+
<dt id="example_group_7" class="passed">Validator</dt>
|
331
329
|
</dl>
|
332
330
|
</div>
|
333
331
|
<div id="div_group_8" class="example_group passed">
|
334
|
-
<dl style="margin-left:
|
335
|
-
<dt id="example_group_8" class="passed"
|
332
|
+
<dl style="margin-left: 15px;">
|
333
|
+
<dt id="example_group_8" class="passed">integer</dt>
|
334
|
+
<script type="text/javascript">moveProgressBar('2.5');</script>
|
335
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when given an integer</span><span class='duration'>0.00009s</span></dd>
|
336
|
+
<script type="text/javascript">moveProgressBar('2.8');</script>
|
337
|
+
<dd class="example passed"><span class="passed_spec_name">fails when given a float</span><span class='duration'>0.00012s</span></dd>
|
336
338
|
<script type="text/javascript">moveProgressBar('3.1');</script>
|
337
|
-
<dd class="example passed"><span class="passed_spec_name">
|
338
|
-
<script type="text/javascript">moveProgressBar('3.5');</script>
|
339
|
-
<dd class="example passed"><span class="passed_spec_name">correctly doesn't rename a key when the value is invalid</span><span class='duration'>0.00012s</span></dd>
|
339
|
+
<dd class="example passed"><span class="passed_spec_name">fails when not given a numeric</span><span class='duration'>0.00014s</span></dd>
|
340
340
|
</dl>
|
341
341
|
</div>
|
342
342
|
<div id="div_group_9" class="example_group passed">
|
343
|
-
<dl style="margin-left:
|
344
|
-
<dt id="example_group_9" class="passed"
|
345
|
-
<script type="text/javascript">moveProgressBar('3.9');</script>
|
346
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when a dependency is given as a key and respected</span><span class='duration'>0.00008s</span></dd>
|
347
|
-
<script type="text/javascript">moveProgressBar('4.2');</script>
|
348
|
-
<dd class="example passed"><span class="passed_spec_name">fails when a dependency is not respected</span><span class='duration'>0.00011s</span></dd>
|
343
|
+
<dl style="margin-left: 30px;">
|
344
|
+
<dt id="example_group_9" class="passed">options</dt>
|
349
345
|
</dl>
|
350
346
|
</div>
|
351
347
|
<div id="div_group_10" class="example_group passed">
|
352
348
|
<dl style="margin-left: 45px;">
|
353
|
-
<dt id="example_group_10" class="passed">:
|
354
|
-
<script type="text/javascript">moveProgressBar('4
|
355
|
-
<dd class="example passed"><span class="passed_spec_name">
|
356
|
-
<script type="text/javascript">moveProgressBar('
|
357
|
-
<dd class="example passed"><span class="passed_spec_name">
|
349
|
+
<dt id="example_group_10" class="passed">:rename</dt>
|
350
|
+
<script type="text/javascript">moveProgressBar('3.4');</script>
|
351
|
+
<dd class="example passed"><span class="passed_spec_name">correctly renames a key when the value is valid</span><span class='duration'>0.00008s</span></dd>
|
352
|
+
<script type="text/javascript">moveProgressBar('3.7');</script>
|
353
|
+
<dd class="example passed"><span class="passed_spec_name">correctly doesn't rename a key when the value is invalid</span><span class='duration'>0.00013s</span></dd>
|
358
354
|
</dl>
|
359
355
|
</div>
|
360
356
|
<div id="div_group_11" class="example_group passed">
|
361
357
|
<dl style="margin-left: 45px;">
|
362
|
-
<dt id="example_group_11" class="passed">:
|
358
|
+
<dt id="example_group_11" class="passed">:dependency</dt>
|
359
|
+
<script type="text/javascript">moveProgressBar('4.1');</script>
|
360
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when a dependency is given as a key and respected</span><span class='duration'>0.00009s</span></dd>
|
361
|
+
<script type="text/javascript">moveProgressBar('4.4');</script>
|
362
|
+
<dd class="example passed"><span class="passed_spec_name">fails when a dependency is not respected</span><span class='duration'>0.00013s</span></dd>
|
363
|
+
</dl>
|
364
|
+
</div>
|
365
|
+
<div id="div_group_12" class="example_group passed">
|
366
|
+
<dl style="margin-left: 45px;">
|
367
|
+
<dt id="example_group_12" class="passed">:dependencies</dt>
|
368
|
+
<script type="text/javascript">moveProgressBar('4.7');</script>
|
369
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when dependencies are given as an array and respected</span><span class='duration'>0.00008s</span></dd>
|
370
|
+
<script type="text/javascript">moveProgressBar('5.0');</script>
|
371
|
+
<dd class="example passed"><span class="passed_spec_name">fails when one of the dependencies is not respected</span><span class='duration'>0.00016s</span></dd>
|
372
|
+
</dl>
|
373
|
+
</div>
|
374
|
+
<div id="div_group_13" class="example_group passed">
|
375
|
+
<dl style="margin-left: 45px;">
|
376
|
+
<dt id="example_group_13" class="passed">:required</dt>
|
363
377
|
<script type="text/javascript">moveProgressBar('5.3');</script>
|
364
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when a not required key is not given, but filters nothing</span><span class='duration'>0.
|
378
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when a not required key is not given, but filters nothing</span><span class='duration'>0.00241s</span></dd>
|
365
379
|
<script type="text/javascript">moveProgressBar('5.6');</script>
|
366
|
-
<dd class="example passed"><span class="passed_spec_name">suceeds when a key has a required option to false, and is not given, but filters nothing</span><span class='duration'>0.
|
367
|
-
<script type="text/javascript">moveProgressBar('
|
368
|
-
<dd class="example passed"><span class="passed_spec_name">fails when a required key is not given</span><span class='duration'>0.
|
380
|
+
<dd class="example passed"><span class="passed_spec_name">suceeds when a key has a required option to false, and is not given, but filters nothing</span><span class='duration'>0.00018s</span></dd>
|
381
|
+
<script type="text/javascript">moveProgressBar('5.9');</script>
|
382
|
+
<dd class="example passed"><span class="passed_spec_name">fails when a required key is not given</span><span class='duration'>0.00014s</span></dd>
|
369
383
|
</dl>
|
370
384
|
</div>
|
371
|
-
<div id="
|
385
|
+
<div id="div_group_14" class="example_group passed">
|
372
386
|
<dl style="margin-left: 45px;">
|
373
|
-
<dt id="
|
387
|
+
<dt id="example_group_14" class="passed">:in</dt>
|
374
388
|
<script type="text/javascript">moveProgressBar('6.3');</script>
|
375
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when the value is effectively in the possible values</span><span class='duration'>0.
|
376
|
-
<script type="text/javascript">moveProgressBar('6.
|
389
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when the value is effectively in the possible values</span><span class='duration'>0.00010s</span></dd>
|
390
|
+
<script type="text/javascript">moveProgressBar('6.6');</script>
|
377
391
|
<dd class="example passed"><span class="passed_spec_name">succeeds if there are no values</span><span class='duration'>0.00008s</span></dd>
|
378
|
-
<script type="text/javascript">moveProgressBar('
|
379
|
-
<dd class="example passed"><span class="passed_spec_name">fails if the value is not in the possible values</span><span class='duration'>0.
|
392
|
+
<script type="text/javascript">moveProgressBar('6.9');</script>
|
393
|
+
<dd class="example passed"><span class="passed_spec_name">fails if the value is not in the possible values</span><span class='duration'>0.00012s</span></dd>
|
380
394
|
</dl>
|
381
395
|
</div>
|
382
|
-
<div id="
|
396
|
+
<div id="div_group_15" class="example_group passed">
|
383
397
|
<dl style="margin-left: 45px;">
|
384
|
-
<dt id="
|
385
|
-
<script type="text/javascript">moveProgressBar('7.
|
386
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when the value is equal to the given value</span><span class='duration'>0.
|
387
|
-
<script type="text/javascript">moveProgressBar('7.
|
388
|
-
<dd class="example passed"><span class="passed_spec_name">fails if the value is not equal to the given value</span><span class='duration'>0.
|
398
|
+
<dt id="example_group_15" class="passed">:equals</dt>
|
399
|
+
<script type="text/javascript">moveProgressBar('7.2');</script>
|
400
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when the value is equal to the given value</span><span class='duration'>0.00007s</span></dd>
|
401
|
+
<script type="text/javascript">moveProgressBar('7.5');</script>
|
402
|
+
<dd class="example passed"><span class="passed_spec_name">fails if the value is not equal to the given value</span><span class='duration'>0.00012s</span></dd>
|
389
403
|
</dl>
|
390
404
|
</div>
|
391
|
-
<div id="
|
405
|
+
<div id="div_group_16" class="example_group passed">
|
392
406
|
<dl style="margin-left: 45px;">
|
393
|
-
<dt id="
|
394
|
-
<script type="text/javascript">moveProgressBar('8
|
395
|
-
<dd class="example passed"><span class="passed_spec_name">
|
407
|
+
<dt id="example_group_16" class="passed">:equals_key</dt>
|
408
|
+
<script type="text/javascript">moveProgressBar('7.8');</script>
|
409
|
+
<dd class="example passed"><span class="passed_spec_name">suceeds when the key is present and equals to the other key</span><span class='duration'>0.00007s</span></dd>
|
410
|
+
<script type="text/javascript">moveProgressBar('8.2');</script>
|
411
|
+
<dd class="example passed"><span class="passed_spec_name">fails when the key is present, but not equals to the other key</span><span class='duration'>0.00013s</span></dd>
|
396
412
|
<script type="text/javascript">moveProgressBar('8.5');</script>
|
397
|
-
<dd class="example passed"><span class="passed_spec_name">
|
413
|
+
<dd class="example passed"><span class="passed_spec_name">fails when the key to compare the validated key with is not in the hash</span><span class='duration'>0.00014s</span></dd>
|
398
414
|
</dl>
|
399
415
|
</div>
|
400
|
-
<div id="
|
416
|
+
<div id="div_group_17" class="example_group passed">
|
401
417
|
<dl style="margin-left: 45px;">
|
402
|
-
<dt id="
|
418
|
+
<dt id="example_group_17" class="passed">:extract</dt>
|
403
419
|
<script type="text/javascript">moveProgressBar('8.8');</script>
|
404
|
-
<dd class="example passed"><span class="passed_spec_name">
|
405
|
-
<script type="text/javascript">moveProgressBar('9.
|
406
|
-
<dd class="example passed"><span class="passed_spec_name">doesn't
|
420
|
+
<dd class="example passed"><span class="passed_spec_name">etracts the data when given at true</span><span class='duration'>0.00006s</span></dd>
|
421
|
+
<script type="text/javascript">moveProgressBar('9.1');</script>
|
422
|
+
<dd class="example passed"><span class="passed_spec_name">doesn't extract the data when given at false</span><span class='duration'>0.00008s</span></dd>
|
407
423
|
</dl>
|
408
424
|
</div>
|
409
|
-
<div id="
|
425
|
+
<div id="div_group_18" class="example_group passed">
|
410
426
|
<dl style="margin-left: 45px;">
|
411
|
-
<dt id="
|
412
|
-
<script type="text/javascript">moveProgressBar('9.
|
413
|
-
<dd class="example passed"><span class="passed_spec_name">
|
414
|
-
<script type="text/javascript">moveProgressBar('9.
|
427
|
+
<dt id="example_group_18" class="passed">:cast</dt>
|
428
|
+
<script type="text/javascript">moveProgressBar('9.4');</script>
|
429
|
+
<dd class="example passed"><span class="passed_spec_name">casts the data when given at true</span><span class='duration'>0.00007s</span></dd>
|
430
|
+
<script type="text/javascript">moveProgressBar('9.7');</script>
|
431
|
+
<dd class="example passed"><span class="passed_spec_name">doesn't cast the data when given at false</span><span class='duration'>0.00009s</span></dd>
|
432
|
+
</dl>
|
433
|
+
</div>
|
434
|
+
<div id="div_group_19" class="example_group passed">
|
435
|
+
<dl style="margin-left: 45px;">
|
436
|
+
<dt id="example_group_19" class="passed">:min</dt>
|
437
|
+
<script type="text/javascript">moveProgressBar('10.0');</script>
|
438
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when a min option is given, and the value is strictly greater than it</span><span class='duration'>0.00007s</span></dd>
|
439
|
+
<script type="text/javascript">moveProgressBar('10.4');</script>
|
415
440
|
<dd class="example passed"><span class="passed_spec_name">succeeds when a min option is given, and the value is equal to it</span><span class='duration'>0.00008s</span></dd>
|
416
|
-
<script type="text/javascript">moveProgressBar('10.
|
441
|
+
<script type="text/javascript">moveProgressBar('10.7');</script>
|
417
442
|
<dd class="example passed"><span class="passed_spec_name">fails when a min option is given, but not respected</span><span class='duration'>0.00012s</span></dd>
|
418
443
|
</dl>
|
419
444
|
</div>
|
420
|
-
<div id="
|
445
|
+
<div id="div_group_20" class="example_group passed">
|
421
446
|
<dl style="margin-left: 45px;">
|
422
|
-
<dt id="
|
423
|
-
<script type="text/javascript">moveProgressBar('
|
424
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when a max option is given, and the value is strictly lesser than it</span><span class='duration'>0.
|
425
|
-
<script type="text/javascript">moveProgressBar('10.9');</script>
|
426
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when a max option is given, and the value is equal to it</span><span class='duration'>0.00008s</span></dd>
|
447
|
+
<dt id="example_group_20" class="passed">:max</dt>
|
448
|
+
<script type="text/javascript">moveProgressBar('11.0');</script>
|
449
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when a max option is given, and the value is strictly lesser than it</span><span class='duration'>0.00008s</span></dd>
|
427
450
|
<script type="text/javascript">moveProgressBar('11.3');</script>
|
451
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when a max option is given, and the value is equal to it</span><span class='duration'>0.00011s</span></dd>
|
452
|
+
<script type="text/javascript">moveProgressBar('11.6');</script>
|
428
453
|
<dd class="example passed"><span class="passed_spec_name">fails when a max option is given, but not respected</span><span class='duration'>0.00012s</span></dd>
|
429
454
|
</dl>
|
430
455
|
</div>
|
431
|
-
<div id="
|
456
|
+
<div id="div_group_21" class="example_group passed">
|
432
457
|
<dl style="margin-left: 45px;">
|
433
|
-
<dt id="
|
434
|
-
<script type="text/javascript">moveProgressBar('11.
|
435
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when a between option is given, and respected</span><span class='duration'>0.
|
436
|
-
<script type="text/javascript">moveProgressBar('12.
|
437
|
-
<dd class="example passed"><span class="passed_spec_name">fails when a max between option is given, but the value is strictly lesser</span><span class='duration'>0.
|
438
|
-
<script type="text/javascript">moveProgressBar('12.
|
439
|
-
<dd class="example passed"><span class="passed_spec_name">fails when a max between option is given, but the value is strictly greater</span><span class='duration'>0.
|
440
|
-
<script type="text/javascript">moveProgressBar('12.
|
441
|
-
<dd class="example passed"><span class="passed_spec_name">fails when a max between option is given, but the value is equal to the inferior limit</span><span class='duration'>0.
|
442
|
-
<script type="text/javascript">moveProgressBar('13.
|
443
|
-
<dd class="example passed"><span class="passed_spec_name">fails when a max between option is given, but the value is equal to the superio limit</span><span class='duration'>0.
|
458
|
+
<dt id="example_group_21" class="passed">:between</dt>
|
459
|
+
<script type="text/javascript">moveProgressBar('11.9');</script>
|
460
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when a between option is given, and respected</span><span class='duration'>0.00009s</span></dd>
|
461
|
+
<script type="text/javascript">moveProgressBar('12.3');</script>
|
462
|
+
<dd class="example passed"><span class="passed_spec_name">fails when a max between option is given, but the value is strictly lesser</span><span class='duration'>0.00011s</span></dd>
|
463
|
+
<script type="text/javascript">moveProgressBar('12.6');</script>
|
464
|
+
<dd class="example passed"><span class="passed_spec_name">fails when a max between option is given, but the value is strictly greater</span><span class='duration'>0.00011s</span></dd>
|
465
|
+
<script type="text/javascript">moveProgressBar('12.9');</script>
|
466
|
+
<dd class="example passed"><span class="passed_spec_name">fails when a max between option is given, but the value is equal to the inferior limit</span><span class='duration'>0.00009s</span></dd>
|
467
|
+
<script type="text/javascript">moveProgressBar('13.2');</script>
|
468
|
+
<dd class="example passed"><span class="passed_spec_name">fails when a max between option is given, but the value is equal to the superio limit</span><span class='duration'>0.00007s</span></dd>
|
444
469
|
</dl>
|
445
470
|
</div>
|
446
|
-
<div id="
|
471
|
+
<div id="div_group_22" class="example_group passed">
|
447
472
|
<dl style="margin-left: 15px;">
|
448
|
-
<dt id="
|
449
|
-
<script type="text/javascript">moveProgressBar('13.
|
473
|
+
<dt id="example_group_22" class="passed">numeric</dt>
|
474
|
+
<script type="text/javascript">moveProgressBar('13.5');</script>
|
450
475
|
<dd class="example passed"><span class="passed_spec_name">succeeds when given an integer</span><span class='duration'>0.00007s</span></dd>
|
451
476
|
<script type="text/javascript">moveProgressBar('13.8');</script>
|
452
477
|
<dd class="example passed"><span class="passed_spec_name">succeeds when given an decimal number with a dot</span><span class='duration'>0.00007s</span></dd>
|
@@ -456,1050 +481,1160 @@ a {
|
|
456
481
|
<dd class="example passed"><span class="passed_spec_name">fails when not given a numeric</span><span class='duration'>0.00010s</span></dd>
|
457
482
|
</dl>
|
458
483
|
</div>
|
459
|
-
<div id="
|
484
|
+
<div id="div_group_23" class="example_group passed">
|
460
485
|
<dl style="margin-left: 30px;">
|
461
|
-
<dt id="
|
486
|
+
<dt id="example_group_23" class="passed">options</dt>
|
462
487
|
</dl>
|
463
488
|
</div>
|
464
|
-
<div id="
|
489
|
+
<div id="div_group_24" class="example_group passed">
|
465
490
|
<dl style="margin-left: 45px;">
|
466
|
-
<dt id="
|
491
|
+
<dt id="example_group_24" class="passed">:rename</dt>
|
467
492
|
<script type="text/javascript">moveProgressBar('14.8');</script>
|
468
|
-
<dd class="example passed"><span class="passed_spec_name">correctly renames a key when the value is valid</span><span class='duration'>0.
|
469
|
-
<script type="text/javascript">moveProgressBar('15.
|
493
|
+
<dd class="example passed"><span class="passed_spec_name">correctly renames a key when the value is valid</span><span class='duration'>0.00008s</span></dd>
|
494
|
+
<script type="text/javascript">moveProgressBar('15.1');</script>
|
470
495
|
<dd class="example passed"><span class="passed_spec_name">correctly doesn't rename a key when the value is invalid</span><span class='duration'>0.00011s</span></dd>
|
471
496
|
</dl>
|
472
497
|
</div>
|
473
|
-
<div id="
|
498
|
+
<div id="div_group_25" class="example_group passed">
|
474
499
|
<dl style="margin-left: 45px;">
|
475
|
-
<dt id="
|
476
|
-
<script type="text/javascript">moveProgressBar('15.
|
500
|
+
<dt id="example_group_25" class="passed">:dependency</dt>
|
501
|
+
<script type="text/javascript">moveProgressBar('15.4');</script>
|
477
502
|
<dd class="example passed"><span class="passed_spec_name">succeeds when a dependency is given as a key and respected</span><span class='duration'>0.00008s</span></dd>
|
478
|
-
<script type="text/javascript">moveProgressBar('15.
|
503
|
+
<script type="text/javascript">moveProgressBar('15.7');</script>
|
479
504
|
<dd class="example passed"><span class="passed_spec_name">fails when a dependency is not respected</span><span class='duration'>0.00010s</span></dd>
|
480
505
|
</dl>
|
481
506
|
</div>
|
482
|
-
<div id="
|
507
|
+
<div id="div_group_26" class="example_group passed">
|
483
508
|
<dl style="margin-left: 45px;">
|
484
|
-
<dt id="
|
485
|
-
<script type="text/javascript">moveProgressBar('16.
|
509
|
+
<dt id="example_group_26" class="passed">:dependencies</dt>
|
510
|
+
<script type="text/javascript">moveProgressBar('16.0');</script>
|
486
511
|
<dd class="example passed"><span class="passed_spec_name">succeeds when dependencies are given as an array and respected</span><span class='duration'>0.00008s</span></dd>
|
487
|
-
<script type="text/javascript">moveProgressBar('16.
|
512
|
+
<script type="text/javascript">moveProgressBar('16.4');</script>
|
488
513
|
<dd class="example passed"><span class="passed_spec_name">fails when one of the dependencies is not respected</span><span class='duration'>0.00011s</span></dd>
|
489
514
|
</dl>
|
490
515
|
</div>
|
491
|
-
<div id="
|
516
|
+
<div id="div_group_27" class="example_group passed">
|
492
517
|
<dl style="margin-left: 45px;">
|
493
|
-
<dt id="
|
518
|
+
<dt id="example_group_27" class="passed">:required</dt>
|
519
|
+
<script type="text/javascript">moveProgressBar('16.7');</script>
|
520
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when a not required key is not given, but filters nothing</span><span class='duration'>0.00013s</span></dd>
|
494
521
|
<script type="text/javascript">moveProgressBar('17.0');</script>
|
495
|
-
<dd class="example passed"><span class="passed_spec_name">
|
522
|
+
<dd class="example passed"><span class="passed_spec_name">suceeds when a key has a required option to false, and is not given, but filters nothing</span><span class='duration'>0.00011s</span></dd>
|
496
523
|
<script type="text/javascript">moveProgressBar('17.3');</script>
|
497
|
-
<dd class="example passed"><span class="passed_spec_name">suceeds when a key has a required option to false, and is not given, but filters nothing</span><span class='duration'>0.00012s</span></dd>
|
498
|
-
<script type="text/javascript">moveProgressBar('17.7');</script>
|
499
524
|
<dd class="example passed"><span class="passed_spec_name">fails when a required key is not given</span><span class='duration'>0.00014s</span></dd>
|
500
525
|
</dl>
|
501
526
|
</div>
|
502
|
-
<div id="
|
527
|
+
<div id="div_group_28" class="example_group passed">
|
503
528
|
<dl style="margin-left: 45px;">
|
504
|
-
<dt id="
|
505
|
-
<script type="text/javascript">moveProgressBar('
|
506
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when the value is effectively in the possible values</span><span class='duration'>0.
|
507
|
-
<script type="text/javascript">moveProgressBar('
|
529
|
+
<dt id="example_group_28" class="passed">:in</dt>
|
530
|
+
<script type="text/javascript">moveProgressBar('17.6');</script>
|
531
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when the value is effectively in the possible values</span><span class='duration'>0.00007s</span></dd>
|
532
|
+
<script type="text/javascript">moveProgressBar('17.9');</script>
|
508
533
|
<dd class="example passed"><span class="passed_spec_name">succeeds if there are no values</span><span class='duration'>0.00007s</span></dd>
|
509
|
-
<script type="text/javascript">moveProgressBar('18.
|
510
|
-
<dd class="example passed"><span class="passed_spec_name">fails if the value is not in the possible values</span><span class='duration'>0.
|
534
|
+
<script type="text/javascript">moveProgressBar('18.2');</script>
|
535
|
+
<dd class="example passed"><span class="passed_spec_name">fails if the value is not in the possible values</span><span class='duration'>0.00012s</span></dd>
|
511
536
|
</dl>
|
512
537
|
</div>
|
513
|
-
<div id="
|
538
|
+
<div id="div_group_29" class="example_group passed">
|
514
539
|
<dl style="margin-left: 45px;">
|
515
|
-
<dt id="
|
516
|
-
<script type="text/javascript">moveProgressBar('
|
540
|
+
<dt id="example_group_29" class="passed">:equals</dt>
|
541
|
+
<script type="text/javascript">moveProgressBar('18.6');</script>
|
517
542
|
<dd class="example passed"><span class="passed_spec_name">succeeds when the value is equal to the given value</span><span class='duration'>0.00007s</span></dd>
|
518
|
-
<script type="text/javascript">moveProgressBar('
|
519
|
-
<dd class="example passed"><span class="passed_spec_name">fails if the value is not equal to the given value</span><span class='duration'>0.
|
543
|
+
<script type="text/javascript">moveProgressBar('18.9');</script>
|
544
|
+
<dd class="example passed"><span class="passed_spec_name">fails if the value is not equal to the given value</span><span class='duration'>0.00016s</span></dd>
|
520
545
|
</dl>
|
521
546
|
</div>
|
522
|
-
<div id="
|
547
|
+
<div id="div_group_30" class="example_group passed">
|
523
548
|
<dl style="margin-left: 45px;">
|
524
|
-
<dt id="
|
549
|
+
<dt id="example_group_30" class="passed">:equals_key</dt>
|
550
|
+
<script type="text/javascript">moveProgressBar('19.2');</script>
|
551
|
+
<dd class="example passed"><span class="passed_spec_name">suceeds when the key is present and equals to the other key</span><span class='duration'>0.00007s</span></dd>
|
552
|
+
<script type="text/javascript">moveProgressBar('19.5');</script>
|
553
|
+
<dd class="example passed"><span class="passed_spec_name">fails when the key is present, but not equals to the other key</span><span class='duration'>0.00015s</span></dd>
|
525
554
|
<script type="text/javascript">moveProgressBar('19.8');</script>
|
526
|
-
<dd class="example passed"><span class="passed_spec_name">
|
527
|
-
<script type="text/javascript">moveProgressBar('20.2');</script>
|
528
|
-
<dd class="example passed"><span class="passed_spec_name">doesn't extract the data when given at false</span><span class='duration'>0.00007s</span></dd>
|
555
|
+
<dd class="example passed"><span class="passed_spec_name">fails when the key to compare the validated key with is not in the hash</span><span class='duration'>0.00011s</span></dd>
|
529
556
|
</dl>
|
530
557
|
</div>
|
531
|
-
<div id="
|
558
|
+
<div id="div_group_31" class="example_group passed">
|
532
559
|
<dl style="margin-left: 45px;">
|
533
|
-
<dt id="
|
560
|
+
<dt id="example_group_31" class="passed">:extract</dt>
|
561
|
+
<script type="text/javascript">moveProgressBar('20.1');</script>
|
562
|
+
<dd class="example passed"><span class="passed_spec_name">etracts the data when given at true</span><span class='duration'>0.00006s</span></dd>
|
534
563
|
<script type="text/javascript">moveProgressBar('20.5');</script>
|
564
|
+
<dd class="example passed"><span class="passed_spec_name">doesn't extract the data when given at false</span><span class='duration'>0.00007s</span></dd>
|
565
|
+
</dl>
|
566
|
+
</div>
|
567
|
+
<div id="div_group_32" class="example_group passed">
|
568
|
+
<dl style="margin-left: 45px;">
|
569
|
+
<dt id="example_group_32" class="passed">:cast</dt>
|
570
|
+
<script type="text/javascript">moveProgressBar('20.8');</script>
|
535
571
|
<dd class="example passed"><span class="passed_spec_name">casts the data when given at true</span><span class='duration'>0.00007s</span></dd>
|
536
|
-
<script type="text/javascript">moveProgressBar('
|
537
|
-
<dd class="example passed"><span class="passed_spec_name">doesn't cast the data when given at false</span><span class='duration'>0.
|
572
|
+
<script type="text/javascript">moveProgressBar('21.1');</script>
|
573
|
+
<dd class="example passed"><span class="passed_spec_name">doesn't cast the data when given at false</span><span class='duration'>0.00011s</span></dd>
|
538
574
|
</dl>
|
539
575
|
</div>
|
540
|
-
<div id="
|
576
|
+
<div id="div_group_33" class="example_group passed">
|
541
577
|
<dl style="margin-left: 45px;">
|
542
|
-
<dt id="
|
543
|
-
<script type="text/javascript">moveProgressBar('21.
|
578
|
+
<dt id="example_group_33" class="passed">:min</dt>
|
579
|
+
<script type="text/javascript">moveProgressBar('21.4');</script>
|
544
580
|
<dd class="example passed"><span class="passed_spec_name">succeeds when a min option is given, and the value is strictly greater than it</span><span class='duration'>0.00008s</span></dd>
|
545
|
-
<script type="text/javascript">moveProgressBar('21.
|
546
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when a min option is given, and the value is equal to it</span><span class='duration'>0.
|
547
|
-
<script type="text/javascript">moveProgressBar('
|
548
|
-
<dd class="example passed"><span class="passed_spec_name">fails when a min option is given, but not respected</span><span class='duration'>0.
|
581
|
+
<script type="text/javascript">moveProgressBar('21.7');</script>
|
582
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when a min option is given, and the value is equal to it</span><span class='duration'>0.00007s</span></dd>
|
583
|
+
<script type="text/javascript">moveProgressBar('22.0');</script>
|
584
|
+
<dd class="example passed"><span class="passed_spec_name">fails when a min option is given, but not respected</span><span class='duration'>0.00012s</span></dd>
|
549
585
|
</dl>
|
550
586
|
</div>
|
551
|
-
<div id="
|
587
|
+
<div id="div_group_34" class="example_group passed">
|
552
588
|
<dl style="margin-left: 45px;">
|
553
|
-
<dt id="
|
589
|
+
<dt id="example_group_34" class="passed">:max</dt>
|
554
590
|
<script type="text/javascript">moveProgressBar('22.3');</script>
|
555
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when a max option is given, and the value is strictly lesser than it</span><span class='duration'>0.
|
556
|
-
<script type="text/javascript">moveProgressBar('22.
|
557
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when a max option is given, and the value is equal to it</span><span class='duration'>0.
|
591
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when a max option is given, and the value is strictly lesser than it</span><span class='duration'>0.00008s</span></dd>
|
592
|
+
<script type="text/javascript">moveProgressBar('22.7');</script>
|
593
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when a max option is given, and the value is equal to it</span><span class='duration'>0.00010s</span></dd>
|
558
594
|
<script type="text/javascript">moveProgressBar('23.0');</script>
|
559
|
-
<dd class="example passed"><span class="passed_spec_name">fails when a max option is given, but not respected</span><span class='duration'>0.
|
595
|
+
<dd class="example passed"><span class="passed_spec_name">fails when a max option is given, but not respected</span><span class='duration'>0.00012s</span></dd>
|
560
596
|
</dl>
|
561
597
|
</div>
|
562
|
-
<div id="
|
598
|
+
<div id="div_group_35" class="example_group passed">
|
563
599
|
<dl style="margin-left: 45px;">
|
564
|
-
<dt id="
|
565
|
-
<script type="text/javascript">moveProgressBar('23.
|
566
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when a between option is given, and respected</span><span class='duration'>0.
|
567
|
-
<script type="text/javascript">moveProgressBar('23.
|
568
|
-
<dd class="example passed"><span class="passed_spec_name">fails when a max between option is given, but the value is strictly lesser</span><span class='duration'>0.
|
569
|
-
<script type="text/javascript">moveProgressBar('
|
570
|
-
<dd class="example passed"><span class="passed_spec_name">fails when a max between option is given, but the value is strictly greater</span><span class='duration'>0.
|
571
|
-
<script type="text/javascript">moveProgressBar('24.
|
600
|
+
<dt id="example_group_35" class="passed">:between</dt>
|
601
|
+
<script type="text/javascript">moveProgressBar('23.3');</script>
|
602
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when a between option is given, and respected</span><span class='duration'>0.00012s</span></dd>
|
603
|
+
<script type="text/javascript">moveProgressBar('23.6');</script>
|
604
|
+
<dd class="example passed"><span class="passed_spec_name">fails when a max between option is given, but the value is strictly lesser</span><span class='duration'>0.00012s</span></dd>
|
605
|
+
<script type="text/javascript">moveProgressBar('23.9');</script>
|
606
|
+
<dd class="example passed"><span class="passed_spec_name">fails when a max between option is given, but the value is strictly greater</span><span class='duration'>0.00012s</span></dd>
|
607
|
+
<script type="text/javascript">moveProgressBar('24.2');</script>
|
572
608
|
<dd class="example passed"><span class="passed_spec_name">fails when a max between option is given, but the value is equal to the inferior limit</span><span class='duration'>0.00008s</span></dd>
|
573
|
-
<script type="text/javascript">moveProgressBar('24.
|
574
|
-
<dd class="example passed"><span class="passed_spec_name">fails when a max between option is given, but the value is equal to the superio limit</span><span class='duration'>0.
|
609
|
+
<script type="text/javascript">moveProgressBar('24.6');</script>
|
610
|
+
<dd class="example passed"><span class="passed_spec_name">fails when a max between option is given, but the value is equal to the superio limit</span><span class='duration'>0.00008s</span></dd>
|
575
611
|
</dl>
|
576
612
|
</div>
|
577
|
-
<div id="
|
613
|
+
<div id="div_group_36" class="example_group passed">
|
578
614
|
<dl style="margin-left: 45px;">
|
579
|
-
<dt id="
|
580
|
-
<script type="text/javascript">moveProgressBar('
|
581
|
-
<dd class="example passed"><span class="passed_spec_name">rounds the number when the option is passed as an integer</span><span class='duration'>0.
|
615
|
+
<dt id="example_group_36" class="passed">:round</dt>
|
616
|
+
<script type="text/javascript">moveProgressBar('24.9');</script>
|
617
|
+
<dd class="example passed"><span class="passed_spec_name">rounds the number when the option is passed as an integer</span><span class='duration'>0.00011s</span></dd>
|
618
|
+
<script type="text/javascript">moveProgressBar('25.2');</script>
|
619
|
+
<dd class="example passed"><span class="passed_spec_name">rounds the number when the option is passed as a boolean</span><span class='duration'>0.00010s</span></dd>
|
582
620
|
<script type="text/javascript">moveProgressBar('25.5');</script>
|
583
|
-
<dd class="example passed"><span class="passed_spec_name">
|
584
|
-
<script type="text/javascript">moveProgressBar('25.8');</script>
|
585
|
-
<dd class="example passed"><span class="passed_spec_name">doesn't round the number if passed with another type</span><span class='duration'>0.00007s</span></dd>
|
621
|
+
<dd class="example passed"><span class="passed_spec_name">doesn't round the number if passed with another type</span><span class='duration'>0.00014s</span></dd>
|
586
622
|
</dl>
|
587
623
|
</div>
|
588
|
-
<div id="
|
624
|
+
<div id="div_group_37" class="example_group passed">
|
589
625
|
<dl style="margin-left: 45px;">
|
590
|
-
<dt id="
|
591
|
-
<script type="text/javascript">moveProgressBar('
|
626
|
+
<dt id="example_group_37" class="passed">:floor</dt>
|
627
|
+
<script type="text/javascript">moveProgressBar('25.8');</script>
|
592
628
|
<dd class="example passed"><span class="passed_spec_name">floors the number if passed to true</span><span class='duration'>0.00007s</span></dd>
|
593
|
-
<script type="text/javascript">moveProgressBar('26.
|
594
|
-
<dd class="example passed"><span class="passed_spec_name">doesn't floor the number if passed to false</span><span class='duration'>0.
|
629
|
+
<script type="text/javascript">moveProgressBar('26.1');</script>
|
630
|
+
<dd class="example passed"><span class="passed_spec_name">doesn't floor the number if passed to false</span><span class='duration'>0.00007s</span></dd>
|
595
631
|
</dl>
|
596
632
|
</div>
|
597
|
-
<div id="
|
633
|
+
<div id="div_group_38" class="example_group passed">
|
598
634
|
<dl style="margin-left: 45px;">
|
599
|
-
<dt id="
|
600
|
-
<script type="text/javascript">moveProgressBar('26.
|
635
|
+
<dt id="example_group_38" class="passed">:ceil</dt>
|
636
|
+
<script type="text/javascript">moveProgressBar('26.4');</script>
|
601
637
|
<dd class="example passed"><span class="passed_spec_name">ceils the number if passed to true</span><span class='duration'>0.00007s</span></dd>
|
602
|
-
<script type="text/javascript">moveProgressBar('
|
638
|
+
<script type="text/javascript">moveProgressBar('26.8');</script>
|
603
639
|
<dd class="example passed"><span class="passed_spec_name">doesn't ceil the number if passed to false</span><span class='duration'>0.00007s</span></dd>
|
604
640
|
</dl>
|
605
641
|
</div>
|
606
|
-
<div id="
|
642
|
+
<div id="div_group_39" class="example_group passed">
|
607
643
|
<dl style="margin-left: 15px;">
|
608
|
-
<dt id="
|
609
|
-
<script type="text/javascript">moveProgressBar('27.
|
610
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when given an instance of String</span><span class='duration'>0.
|
611
|
-
<script type="text/javascript">moveProgressBar('
|
612
|
-
<dd class="example passed"><span class="passed_spec_name">fails when given something else than an instance of String</span><span class='duration'>0.
|
644
|
+
<dt id="example_group_39" class="passed">text</dt>
|
645
|
+
<script type="text/javascript">moveProgressBar('27.1');</script>
|
646
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when given an instance of String</span><span class='duration'>0.00008s</span></dd>
|
647
|
+
<script type="text/javascript">moveProgressBar('27.4');</script>
|
648
|
+
<dd class="example passed"><span class="passed_spec_name">fails when given something else than an instance of String</span><span class='duration'>0.00011s</span></dd>
|
613
649
|
</dl>
|
614
650
|
</div>
|
615
|
-
<div id="
|
651
|
+
<div id="div_group_40" class="example_group passed">
|
616
652
|
<dl style="margin-left: 30px;">
|
617
|
-
<dt id="
|
653
|
+
<dt id="example_group_40" class="passed">options</dt>
|
618
654
|
</dl>
|
619
655
|
</div>
|
620
|
-
<div id="
|
656
|
+
<div id="div_group_41" class="example_group passed">
|
621
657
|
<dl style="margin-left: 45px;">
|
622
|
-
<dt id="
|
623
|
-
<script type="text/javascript">moveProgressBar('
|
658
|
+
<dt id="example_group_41" class="passed">:rename</dt>
|
659
|
+
<script type="text/javascript">moveProgressBar('27.7');</script>
|
624
660
|
<dd class="example passed"><span class="passed_spec_name">correctly renames a key when the value is valid</span><span class='duration'>0.00007s</span></dd>
|
625
|
-
<script type="text/javascript">moveProgressBar('28.
|
626
|
-
<dd class="example passed"><span class="passed_spec_name">correctly doesn't rename a key when the value is invalid</span><span class='duration'>0.
|
661
|
+
<script type="text/javascript">moveProgressBar('28.0');</script>
|
662
|
+
<dd class="example passed"><span class="passed_spec_name">correctly doesn't rename a key when the value is invalid</span><span class='duration'>0.00011s</span></dd>
|
627
663
|
</dl>
|
628
664
|
</div>
|
629
|
-
<div id="
|
665
|
+
<div id="div_group_42" class="example_group passed">
|
630
666
|
<dl style="margin-left: 45px;">
|
631
|
-
<dt id="
|
632
|
-
<script type="text/javascript">moveProgressBar('
|
667
|
+
<dt id="example_group_42" class="passed">:dependency</dt>
|
668
|
+
<script type="text/javascript">moveProgressBar('28.3');</script>
|
633
669
|
<dd class="example passed"><span class="passed_spec_name">succeeds when a dependency is given as a key and respected</span><span class='duration'>0.00007s</span></dd>
|
634
|
-
<script type="text/javascript">moveProgressBar('
|
635
|
-
<dd class="example passed"><span class="passed_spec_name">fails when a dependency is not respected</span><span class='duration'>0.
|
670
|
+
<script type="text/javascript">moveProgressBar('28.7');</script>
|
671
|
+
<dd class="example passed"><span class="passed_spec_name">fails when a dependency is not respected</span><span class='duration'>0.00011s</span></dd>
|
636
672
|
</dl>
|
637
673
|
</div>
|
638
|
-
<div id="
|
674
|
+
<div id="div_group_43" class="example_group passed">
|
639
675
|
<dl style="margin-left: 45px;">
|
640
|
-
<dt id="
|
641
|
-
<script type="text/javascript">moveProgressBar('29.
|
642
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when dependencies are given as an array and respected</span><span class='duration'>0.
|
643
|
-
<script type="text/javascript">moveProgressBar('
|
676
|
+
<dt id="example_group_43" class="passed">:dependencies</dt>
|
677
|
+
<script type="text/javascript">moveProgressBar('29.0');</script>
|
678
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when dependencies are given as an array and respected</span><span class='duration'>0.00009s</span></dd>
|
679
|
+
<script type="text/javascript">moveProgressBar('29.3');</script>
|
644
680
|
<dd class="example passed"><span class="passed_spec_name">fails when one of the dependencies is not respected</span><span class='duration'>0.00011s</span></dd>
|
645
681
|
</dl>
|
646
682
|
</div>
|
647
|
-
<div id="
|
683
|
+
<div id="div_group_44" class="example_group passed">
|
648
684
|
<dl style="margin-left: 45px;">
|
649
|
-
<dt id="
|
650
|
-
<script type="text/javascript">moveProgressBar('
|
651
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when a not required key is not given, but filters nothing</span><span class='duration'>0.
|
652
|
-
<script type="text/javascript">moveProgressBar('
|
685
|
+
<dt id="example_group_44" class="passed">:required</dt>
|
686
|
+
<script type="text/javascript">moveProgressBar('29.6');</script>
|
687
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when a not required key is not given, but filters nothing</span><span class='duration'>0.00016s</span></dd>
|
688
|
+
<script type="text/javascript">moveProgressBar('29.9');</script>
|
653
689
|
<dd class="example passed"><span class="passed_spec_name">suceeds when a key has a required option to false, and is not given, but filters nothing</span><span class='duration'>0.00012s</span></dd>
|
654
|
-
<script type="text/javascript">moveProgressBar('
|
655
|
-
<dd class="example passed"><span class="passed_spec_name">fails when a required key is not given</span><span class='duration'>0.
|
690
|
+
<script type="text/javascript">moveProgressBar('30.2');</script>
|
691
|
+
<dd class="example passed"><span class="passed_spec_name">fails when a required key is not given</span><span class='duration'>0.00011s</span></dd>
|
656
692
|
</dl>
|
657
693
|
</div>
|
658
|
-
<div id="
|
694
|
+
<div id="div_group_45" class="example_group passed">
|
659
695
|
<dl style="margin-left: 45px;">
|
660
|
-
<dt id="
|
661
|
-
<script type="text/javascript">moveProgressBar('
|
696
|
+
<dt id="example_group_45" class="passed">:in</dt>
|
697
|
+
<script type="text/javascript">moveProgressBar('30.5');</script>
|
662
698
|
<dd class="example passed"><span class="passed_spec_name">succeeds when the value is effectively in the possible values</span><span class='duration'>0.00007s</span></dd>
|
663
|
-
<script type="text/javascript">moveProgressBar('
|
699
|
+
<script type="text/javascript">moveProgressBar('30.9');</script>
|
664
700
|
<dd class="example passed"><span class="passed_spec_name">succeeds if there are no values</span><span class='duration'>0.00007s</span></dd>
|
665
|
-
<script type="text/javascript">moveProgressBar('
|
666
|
-
<dd class="example passed"><span class="passed_spec_name">fails if the value is not in the possible values</span><span class='duration'>0.
|
701
|
+
<script type="text/javascript">moveProgressBar('31.2');</script>
|
702
|
+
<dd class="example passed"><span class="passed_spec_name">fails if the value is not in the possible values</span><span class='duration'>0.00012s</span></dd>
|
667
703
|
</dl>
|
668
704
|
</div>
|
669
|
-
<div id="
|
705
|
+
<div id="div_group_46" class="example_group passed">
|
670
706
|
<dl style="margin-left: 45px;">
|
671
|
-
<dt id="
|
672
|
-
<script type="text/javascript">moveProgressBar('
|
707
|
+
<dt id="example_group_46" class="passed">:equals</dt>
|
708
|
+
<script type="text/javascript">moveProgressBar('31.5');</script>
|
673
709
|
<dd class="example passed"><span class="passed_spec_name">succeeds when the value is equal to the given value</span><span class='duration'>0.00007s</span></dd>
|
674
|
-
<script type="text/javascript">moveProgressBar('
|
710
|
+
<script type="text/javascript">moveProgressBar('31.8');</script>
|
675
711
|
<dd class="example passed"><span class="passed_spec_name">fails if the value is not equal to the given value</span><span class='duration'>0.00011s</span></dd>
|
676
712
|
</dl>
|
677
713
|
</div>
|
678
|
-
<div id="
|
714
|
+
<div id="div_group_47" class="example_group passed">
|
679
715
|
<dl style="margin-left: 45px;">
|
680
|
-
<dt id="
|
681
|
-
<script type="text/javascript">moveProgressBar('
|
682
|
-
<dd class="example passed"><span class="passed_spec_name">
|
683
|
-
<script type="text/javascript">moveProgressBar('
|
684
|
-
<dd class="example passed"><span class="passed_spec_name">
|
716
|
+
<dt id="example_group_47" class="passed">:equals_key</dt>
|
717
|
+
<script type="text/javascript">moveProgressBar('32.1');</script>
|
718
|
+
<dd class="example passed"><span class="passed_spec_name">suceeds when the key is present and equals to the other key</span><span class='duration'>0.00007s</span></dd>
|
719
|
+
<script type="text/javascript">moveProgressBar('32.4');</script>
|
720
|
+
<dd class="example passed"><span class="passed_spec_name">fails when the key is present, but not equals to the other key</span><span class='duration'>0.00011s</span></dd>
|
721
|
+
<script type="text/javascript">moveProgressBar('32.8');</script>
|
722
|
+
<dd class="example passed"><span class="passed_spec_name">fails when the key to compare the validated key with is not in the hash</span><span class='duration'>0.00011s</span></dd>
|
685
723
|
</dl>
|
686
724
|
</div>
|
687
|
-
<div id="
|
725
|
+
<div id="div_group_48" class="example_group passed">
|
726
|
+
<dl style="margin-left: 45px;">
|
727
|
+
<dt id="example_group_48" class="passed">:extract</dt>
|
728
|
+
<script type="text/javascript">moveProgressBar('33.1');</script>
|
729
|
+
<dd class="example passed"><span class="passed_spec_name">etracts the data when given at true</span><span class='duration'>0.00006s</span></dd>
|
730
|
+
<script type="text/javascript">moveProgressBar('33.4');</script>
|
731
|
+
<dd class="example passed"><span class="passed_spec_name">doesn't extract the data when given at false</span><span class='duration'>0.00009s</span></dd>
|
732
|
+
</dl>
|
733
|
+
</div>
|
734
|
+
<div id="div_group_49" class="example_group passed">
|
688
735
|
<dl style="margin-left: 45px;">
|
689
|
-
<dt id="
|
736
|
+
<dt id="example_group_49" class="passed">:cast</dt>
|
737
|
+
<script type="text/javascript">moveProgressBar('33.7');</script>
|
738
|
+
<dd class="example passed"><span class="passed_spec_name">casts the data when given at true</span><span class='duration'>0.00007s</span></dd>
|
690
739
|
<script type="text/javascript">moveProgressBar('34.0');</script>
|
691
|
-
<dd class="example passed"><span class="passed_spec_name">
|
692
|
-
<script type="text/javascript">moveProgressBar('34.3');</script>
|
693
|
-
<dd class="example passed"><span class="passed_spec_name">doesn't cast the data when given at false</span><span class='duration'>0.00006s</span></dd>
|
740
|
+
<dd class="example passed"><span class="passed_spec_name">doesn't cast the data when given at false</span><span class='duration'>0.00007s</span></dd>
|
694
741
|
</dl>
|
695
742
|
</div>
|
696
|
-
<div id="
|
743
|
+
<div id="div_group_50" class="example_group passed">
|
697
744
|
<dl style="margin-left: 45px;">
|
698
|
-
<dt id="
|
699
|
-
<script type="text/javascript">moveProgressBar('34.
|
745
|
+
<dt id="example_group_50" class="passed">:regex</dt>
|
746
|
+
<script type="text/javascript">moveProgressBar('34.3');</script>
|
700
747
|
<dd class="example passed"><span class="passed_spec_name">succeeds when the regular expression is respected</span><span class='duration'>0.00008s</span></dd>
|
701
|
-
<script type="text/javascript">moveProgressBar('
|
748
|
+
<script type="text/javascript">moveProgressBar('34.7');</script>
|
702
749
|
<dd class="example passed"><span class="passed_spec_name">fails when the regular expression is not respected</span><span class='duration'>0.00011s</span></dd>
|
703
750
|
</dl>
|
704
751
|
</div>
|
705
|
-
<div id="
|
752
|
+
<div id="div_group_51" class="example_group passed">
|
706
753
|
<dl style="margin-left: 15px;">
|
707
|
-
<dt id="
|
708
|
-
<script type="text/javascript">moveProgressBar('35.
|
709
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when given a valid datetime as a string</span><span class='duration'>0.
|
710
|
-
<script type="text/javascript">moveProgressBar('35.
|
711
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when given a valid datetime as a DateTime Object</span><span class='duration'>0.
|
712
|
-
<script type="text/javascript">moveProgressBar('
|
713
|
-
<dd class="example passed"><span class="passed_spec_name">fails when given something else than a valid datetime</span><span class='duration'>0.
|
754
|
+
<dt id="example_group_51" class="passed">datetime</dt>
|
755
|
+
<script type="text/javascript">moveProgressBar('35.0');</script>
|
756
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when given a valid datetime as a string</span><span class='duration'>0.00068s</span></dd>
|
757
|
+
<script type="text/javascript">moveProgressBar('35.3');</script>
|
758
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when given a valid datetime as a DateTime Object</span><span class='duration'>0.00011s</span></dd>
|
759
|
+
<script type="text/javascript">moveProgressBar('35.6');</script>
|
760
|
+
<dd class="example passed"><span class="passed_spec_name">fails when given something else than a valid datetime</span><span class='duration'>0.00023s</span></dd>
|
714
761
|
</dl>
|
715
762
|
</div>
|
716
|
-
<div id="
|
763
|
+
<div id="div_group_52" class="example_group passed">
|
717
764
|
<dl style="margin-left: 30px;">
|
718
|
-
<dt id="
|
765
|
+
<dt id="example_group_52" class="passed">options</dt>
|
719
766
|
</dl>
|
720
767
|
</div>
|
721
|
-
<div id="
|
768
|
+
<div id="div_group_53" class="example_group passed">
|
722
769
|
<dl style="margin-left: 45px;">
|
723
|
-
<dt id="
|
724
|
-
<script type="text/javascript">moveProgressBar('
|
770
|
+
<dt id="example_group_53" class="passed">:rename</dt>
|
771
|
+
<script type="text/javascript">moveProgressBar('35.9');</script>
|
725
772
|
<dd class="example passed"><span class="passed_spec_name">correctly renames a key when the value is valid</span><span class='duration'>0.00011s</span></dd>
|
726
|
-
<script type="text/javascript">moveProgressBar('36.
|
773
|
+
<script type="text/javascript">moveProgressBar('36.2');</script>
|
727
774
|
<dd class="example passed"><span class="passed_spec_name">correctly doesn't rename a key when the value is invalid</span><span class='duration'>0.00015s</span></dd>
|
728
775
|
</dl>
|
729
776
|
</div>
|
730
|
-
<div id="
|
777
|
+
<div id="div_group_54" class="example_group passed">
|
731
778
|
<dl style="margin-left: 45px;">
|
732
|
-
<dt id="
|
733
|
-
<script type="text/javascript">moveProgressBar('
|
734
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when a dependency is given as a key and respected</span><span class='duration'>0.
|
735
|
-
<script type="text/javascript">moveProgressBar('
|
736
|
-
<dd class="example passed"><span class="passed_spec_name">fails when a dependency is not respected</span><span class='duration'>0.
|
779
|
+
<dt id="example_group_54" class="passed">:dependency</dt>
|
780
|
+
<script type="text/javascript">moveProgressBar('36.5');</script>
|
781
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when a dependency is given as a key and respected</span><span class='duration'>0.00013s</span></dd>
|
782
|
+
<script type="text/javascript">moveProgressBar('36.9');</script>
|
783
|
+
<dd class="example passed"><span class="passed_spec_name">fails when a dependency is not respected</span><span class='duration'>0.00013s</span></dd>
|
737
784
|
</dl>
|
738
785
|
</div>
|
739
|
-
<div id="
|
786
|
+
<div id="div_group_55" class="example_group passed">
|
740
787
|
<dl style="margin-left: 45px;">
|
741
|
-
<dt id="
|
742
|
-
<script type="text/javascript">moveProgressBar('37.
|
788
|
+
<dt id="example_group_55" class="passed">:dependencies</dt>
|
789
|
+
<script type="text/javascript">moveProgressBar('37.2');</script>
|
743
790
|
<dd class="example passed"><span class="passed_spec_name">succeeds when dependencies are given as an array and respected</span><span class='duration'>0.00012s</span></dd>
|
744
|
-
<script type="text/javascript">moveProgressBar('
|
791
|
+
<script type="text/javascript">moveProgressBar('37.5');</script>
|
745
792
|
<dd class="example passed"><span class="passed_spec_name">fails when one of the dependencies is not respected</span><span class='duration'>0.00012s</span></dd>
|
746
793
|
</dl>
|
747
794
|
</div>
|
748
|
-
<div id="
|
795
|
+
<div id="div_group_56" class="example_group passed">
|
749
796
|
<dl style="margin-left: 45px;">
|
750
|
-
<dt id="
|
751
|
-
<script type="text/javascript">moveProgressBar('
|
752
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when a not required key is not given, but filters nothing</span><span class='duration'>0.
|
753
|
-
<script type="text/javascript">moveProgressBar('
|
797
|
+
<dt id="example_group_56" class="passed">:required</dt>
|
798
|
+
<script type="text/javascript">moveProgressBar('37.8');</script>
|
799
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when a not required key is not given, but filters nothing</span><span class='duration'>0.00013s</span></dd>
|
800
|
+
<script type="text/javascript">moveProgressBar('38.1');</script>
|
754
801
|
<dd class="example passed"><span class="passed_spec_name">suceeds when a key has a required option to false, and is not given, but filters nothing</span><span class='duration'>0.00013s</span></dd>
|
755
|
-
<script type="text/javascript">moveProgressBar('
|
756
|
-
<dd class="example passed"><span class="passed_spec_name">fails when a required key is not given</span><span class='duration'>0.
|
802
|
+
<script type="text/javascript">moveProgressBar('38.4');</script>
|
803
|
+
<dd class="example passed"><span class="passed_spec_name">fails when a required key is not given</span><span class='duration'>0.00011s</span></dd>
|
757
804
|
</dl>
|
758
805
|
</div>
|
759
|
-
<div id="
|
806
|
+
<div id="div_group_57" class="example_group passed">
|
807
|
+
<dl style="margin-left: 45px;">
|
808
|
+
<dt id="example_group_57" class="passed">:in</dt>
|
809
|
+
<script type="text/javascript">moveProgressBar('38.8');</script>
|
810
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when the value is effectively in the possible values</span><span class='duration'>0.00011s</span></dd>
|
811
|
+
<script type="text/javascript">moveProgressBar('39.1');</script>
|
812
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds if there are no values</span><span class='duration'>0.00011s</span></dd>
|
813
|
+
<script type="text/javascript">moveProgressBar('39.4');</script>
|
814
|
+
<dd class="example passed"><span class="passed_spec_name">fails if the value is not in the possible values</span><span class='duration'>0.00014s</span></dd>
|
815
|
+
</dl>
|
816
|
+
</div>
|
817
|
+
<div id="div_group_58" class="example_group passed">
|
760
818
|
<dl style="margin-left: 45px;">
|
761
|
-
<dt id="
|
819
|
+
<dt id="example_group_58" class="passed">:equals</dt>
|
762
820
|
<script type="text/javascript">moveProgressBar('39.7');</script>
|
763
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when the value is
|
821
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when the value is equal to the given value</span><span class='duration'>0.00011s</span></dd>
|
764
822
|
<script type="text/javascript">moveProgressBar('40.0');</script>
|
765
|
-
<dd class="example passed"><span class="passed_spec_name">
|
766
|
-
<script type="text/javascript">moveProgressBar('40.4');</script>
|
767
|
-
<dd class="example passed"><span class="passed_spec_name">fails if the value is not in the possible values</span><span class='duration'>0.00015s</span></dd>
|
823
|
+
<dd class="example passed"><span class="passed_spec_name">fails if the value is not equal to the given value</span><span class='duration'>0.00014s</span></dd>
|
768
824
|
</dl>
|
769
825
|
</div>
|
770
|
-
<div id="
|
826
|
+
<div id="div_group_59" class="example_group passed">
|
771
827
|
<dl style="margin-left: 45px;">
|
772
|
-
<dt id="
|
773
|
-
<script type="text/javascript">moveProgressBar('40.
|
774
|
-
<dd class="example passed"><span class="passed_spec_name">
|
775
|
-
<script type="text/javascript">moveProgressBar('
|
776
|
-
<dd class="example passed"><span class="passed_spec_name">fails
|
828
|
+
<dt id="example_group_59" class="passed">:equals_key</dt>
|
829
|
+
<script type="text/javascript">moveProgressBar('40.3');</script>
|
830
|
+
<dd class="example passed"><span class="passed_spec_name">suceeds when the key is present and equals to the other key</span><span class='duration'>0.00010s</span></dd>
|
831
|
+
<script type="text/javascript">moveProgressBar('40.6');</script>
|
832
|
+
<dd class="example passed"><span class="passed_spec_name">fails when the key is present, but not equals to the other key</span><span class='duration'>0.00016s</span></dd>
|
833
|
+
<script type="text/javascript">moveProgressBar('41.0');</script>
|
834
|
+
<dd class="example passed"><span class="passed_spec_name">fails when the key to compare the validated key with is not in the hash</span><span class='duration'>0.00015s</span></dd>
|
777
835
|
</dl>
|
778
836
|
</div>
|
779
|
-
<div id="
|
837
|
+
<div id="div_group_60" class="example_group passed">
|
780
838
|
<dl style="margin-left: 45px;">
|
781
|
-
<dt id="
|
782
|
-
<script type="text/javascript">moveProgressBar('41.
|
783
|
-
<dd class="example passed"><span class="passed_spec_name">etracts the data when given at true</span><span class='duration'>0.
|
784
|
-
<script type="text/javascript">moveProgressBar('41.
|
839
|
+
<dt id="example_group_60" class="passed">:extract</dt>
|
840
|
+
<script type="text/javascript">moveProgressBar('41.3');</script>
|
841
|
+
<dd class="example passed"><span class="passed_spec_name">etracts the data when given at true</span><span class='duration'>0.00006s</span></dd>
|
842
|
+
<script type="text/javascript">moveProgressBar('41.6');</script>
|
785
843
|
<dd class="example passed"><span class="passed_spec_name">doesn't extract the data when given at false</span><span class='duration'>0.00011s</span></dd>
|
786
844
|
</dl>
|
787
845
|
</div>
|
788
|
-
<div id="
|
846
|
+
<div id="div_group_61" class="example_group passed">
|
789
847
|
<dl style="margin-left: 45px;">
|
790
|
-
<dt id="
|
791
|
-
<script type="text/javascript">moveProgressBar('
|
792
|
-
<dd class="example passed"><span class="passed_spec_name">casts the data when given at true</span><span class='duration'>0.
|
793
|
-
<script type="text/javascript">moveProgressBar('42.
|
848
|
+
<dt id="example_group_61" class="passed">:cast</dt>
|
849
|
+
<script type="text/javascript">moveProgressBar('41.9');</script>
|
850
|
+
<dd class="example passed"><span class="passed_spec_name">casts the data when given at true</span><span class='duration'>0.00012s</span></dd>
|
851
|
+
<script type="text/javascript">moveProgressBar('42.2');</script>
|
794
852
|
<dd class="example passed"><span class="passed_spec_name">doesn't cast the data when given at false</span><span class='duration'>0.00008s</span></dd>
|
795
853
|
</dl>
|
796
854
|
</div>
|
797
|
-
<div id="
|
855
|
+
<div id="div_group_62" class="example_group passed">
|
798
856
|
<dl style="margin-left: 15px;">
|
799
|
-
<dt id="
|
800
|
-
<script type="text/javascript">moveProgressBar('42.
|
857
|
+
<dt id="example_group_62" class="passed">date</dt>
|
858
|
+
<script type="text/javascript">moveProgressBar('42.5');</script>
|
801
859
|
<dd class="example passed"><span class="passed_spec_name">succeeds when given a valid date as a string</span><span class='duration'>0.00009s</span></dd>
|
802
|
-
<script type="text/javascript">moveProgressBar('
|
860
|
+
<script type="text/javascript">moveProgressBar('42.9');</script>
|
803
861
|
<dd class="example passed"><span class="passed_spec_name">succeeds when given a valid date as a Date Object</span><span class='duration'>0.00008s</span></dd>
|
804
|
-
<script type="text/javascript">moveProgressBar('43.
|
805
|
-
<dd class="example passed"><span class="passed_spec_name">fails when given something else than a valid date</span><span class='duration'>0.
|
862
|
+
<script type="text/javascript">moveProgressBar('43.2');</script>
|
863
|
+
<dd class="example passed"><span class="passed_spec_name">fails when given something else than a valid date</span><span class='duration'>0.00015s</span></dd>
|
806
864
|
</dl>
|
807
865
|
</div>
|
808
|
-
<div id="
|
866
|
+
<div id="div_group_63" class="example_group passed">
|
809
867
|
<dl style="margin-left: 30px;">
|
810
|
-
<dt id="
|
868
|
+
<dt id="example_group_63" class="passed">options</dt>
|
811
869
|
</dl>
|
812
870
|
</div>
|
813
|
-
<div id="
|
871
|
+
<div id="div_group_64" class="example_group passed">
|
814
872
|
<dl style="margin-left: 45px;">
|
815
|
-
<dt id="
|
816
|
-
<script type="text/javascript">moveProgressBar('43.
|
817
|
-
<dd class="example passed"><span class="passed_spec_name">correctly renames a key when the value is valid</span><span class='duration'>0.
|
818
|
-
<script type="text/javascript">moveProgressBar('
|
819
|
-
<dd class="example passed"><span class="passed_spec_name">correctly doesn't rename a key when the value is invalid</span><span class='duration'>0.
|
873
|
+
<dt id="example_group_64" class="passed">:rename</dt>
|
874
|
+
<script type="text/javascript">moveProgressBar('43.5');</script>
|
875
|
+
<dd class="example passed"><span class="passed_spec_name">correctly renames a key when the value is valid</span><span class='duration'>0.00010s</span></dd>
|
876
|
+
<script type="text/javascript">moveProgressBar('43.8');</script>
|
877
|
+
<dd class="example passed"><span class="passed_spec_name">correctly doesn't rename a key when the value is invalid</span><span class='duration'>0.00016s</span></dd>
|
820
878
|
</dl>
|
821
879
|
</div>
|
822
|
-
<div id="
|
880
|
+
<div id="div_group_65" class="example_group passed">
|
823
881
|
<dl style="margin-left: 45px;">
|
824
|
-
<dt id="
|
825
|
-
<script type="text/javascript">moveProgressBar('44.
|
826
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when a dependency is given as a key and respected</span><span class='duration'>0.
|
827
|
-
<script type="text/javascript">moveProgressBar('
|
828
|
-
<dd class="example passed"><span class="passed_spec_name">fails when a dependency is not respected</span><span class='duration'>0.
|
882
|
+
<dt id="example_group_65" class="passed">:dependency</dt>
|
883
|
+
<script type="text/javascript">moveProgressBar('44.1');</script>
|
884
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when a dependency is given as a key and respected</span><span class='duration'>0.00012s</span></dd>
|
885
|
+
<script type="text/javascript">moveProgressBar('44.4');</script>
|
886
|
+
<dd class="example passed"><span class="passed_spec_name">fails when a dependency is not respected</span><span class='duration'>0.00016s</span></dd>
|
829
887
|
</dl>
|
830
888
|
</div>
|
831
|
-
<div id="
|
889
|
+
<div id="div_group_66" class="example_group passed">
|
832
890
|
<dl style="margin-left: 45px;">
|
833
|
-
<dt id="
|
834
|
-
<script type="text/javascript">moveProgressBar('
|
891
|
+
<dt id="example_group_66" class="passed">:dependencies</dt>
|
892
|
+
<script type="text/javascript">moveProgressBar('44.7');</script>
|
835
893
|
<dd class="example passed"><span class="passed_spec_name">succeeds when dependencies are given as an array and respected</span><span class='duration'>0.00009s</span></dd>
|
836
|
-
<script type="text/javascript">moveProgressBar('45.
|
837
|
-
<dd class="example passed"><span class="passed_spec_name">fails when one of the dependencies is not respected</span><span class='duration'>0.
|
894
|
+
<script type="text/javascript">moveProgressBar('45.1');</script>
|
895
|
+
<dd class="example passed"><span class="passed_spec_name">fails when one of the dependencies is not respected</span><span class='duration'>0.00016s</span></dd>
|
838
896
|
</dl>
|
839
897
|
</div>
|
840
|
-
<div id="
|
898
|
+
<div id="div_group_67" class="example_group passed">
|
841
899
|
<dl style="margin-left: 45px;">
|
842
|
-
<dt id="
|
900
|
+
<dt id="example_group_67" class="passed">:required</dt>
|
901
|
+
<script type="text/javascript">moveProgressBar('45.4');</script>
|
902
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when a not required key is not given, but filters nothing</span><span class='duration'>0.00014s</span></dd>
|
903
|
+
<script type="text/javascript">moveProgressBar('45.7');</script>
|
904
|
+
<dd class="example passed"><span class="passed_spec_name">suceeds when a key has a required option to false, and is not given, but filters nothing</span><span class='duration'>0.00016s</span></dd>
|
843
905
|
<script type="text/javascript">moveProgressBar('46.0');</script>
|
844
|
-
<dd class="example passed"><span class="passed_spec_name">
|
845
|
-
<script type="text/javascript">moveProgressBar('46.4');</script>
|
846
|
-
<dd class="example passed"><span class="passed_spec_name">suceeds when a key has a required option to false, and is not given, but filters nothing</span><span class='duration'>0.00014s</span></dd>
|
847
|
-
<script type="text/javascript">moveProgressBar('46.8');</script>
|
848
|
-
<dd class="example passed"><span class="passed_spec_name">fails when a required key is not given</span><span class='duration'>0.00011s</span></dd>
|
906
|
+
<dd class="example passed"><span class="passed_spec_name">fails when a required key is not given</span><span class='duration'>0.00012s</span></dd>
|
849
907
|
</dl>
|
850
908
|
</div>
|
851
|
-
<div id="
|
909
|
+
<div id="div_group_68" class="example_group passed">
|
852
910
|
<dl style="margin-left: 45px;">
|
853
|
-
<dt id="
|
854
|
-
<script type="text/javascript">moveProgressBar('
|
855
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when the value is effectively in the possible values</span><span class='duration'>0.
|
856
|
-
<script type="text/javascript">moveProgressBar('
|
857
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds if there are no values</span><span class='duration'>0.
|
858
|
-
<script type="text/javascript">moveProgressBar('47.
|
859
|
-
<dd class="example passed"><span class="passed_spec_name">fails if the value is not in the possible values</span><span class='duration'>0.
|
911
|
+
<dt id="example_group_68" class="passed">:in</dt>
|
912
|
+
<script type="text/javascript">moveProgressBar('46.3');</script>
|
913
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when the value is effectively in the possible values</span><span class='duration'>0.00010s</span></dd>
|
914
|
+
<script type="text/javascript">moveProgressBar('46.6');</script>
|
915
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds if there are no values</span><span class='duration'>0.00010s</span></dd>
|
916
|
+
<script type="text/javascript">moveProgressBar('47.0');</script>
|
917
|
+
<dd class="example passed"><span class="passed_spec_name">fails if the value is not in the possible values</span><span class='duration'>0.00013s</span></dd>
|
860
918
|
</dl>
|
861
919
|
</div>
|
862
|
-
<div id="
|
920
|
+
<div id="div_group_69" class="example_group passed">
|
863
921
|
<dl style="margin-left: 45px;">
|
864
|
-
<dt id="
|
922
|
+
<dt id="example_group_69" class="passed">:equals</dt>
|
923
|
+
<script type="text/javascript">moveProgressBar('47.3');</script>
|
924
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when the value is equal to the given value</span><span class='duration'>0.00008s</span></dd>
|
925
|
+
<script type="text/javascript">moveProgressBar('47.6');</script>
|
926
|
+
<dd class="example passed"><span class="passed_spec_name">fails if the value is not equal to the given value</span><span class='duration'>0.00013s</span></dd>
|
927
|
+
</dl>
|
928
|
+
</div>
|
929
|
+
<div id="div_group_70" class="example_group passed">
|
930
|
+
<dl style="margin-left: 45px;">
|
931
|
+
<dt id="example_group_70" class="passed">:equals_key</dt>
|
932
|
+
<script type="text/javascript">moveProgressBar('47.9');</script>
|
933
|
+
<dd class="example passed"><span class="passed_spec_name">suceeds when the key is present and equals to the other key</span><span class='duration'>0.00009s</span></dd>
|
865
934
|
<script type="text/javascript">moveProgressBar('48.2');</script>
|
866
|
-
<dd class="example passed"><span class="passed_spec_name">
|
935
|
+
<dd class="example passed"><span class="passed_spec_name">fails when the key is present, but not equals to the other key</span><span class='duration'>0.00018s</span></dd>
|
867
936
|
<script type="text/javascript">moveProgressBar('48.5');</script>
|
868
|
-
<dd class="example passed"><span class="passed_spec_name">fails
|
937
|
+
<dd class="example passed"><span class="passed_spec_name">fails when the key to compare the validated key with is not in the hash</span><span class='duration'>0.00014s</span></dd>
|
869
938
|
</dl>
|
870
939
|
</div>
|
871
|
-
<div id="
|
940
|
+
<div id="div_group_71" class="example_group passed">
|
872
941
|
<dl style="margin-left: 45px;">
|
873
|
-
<dt id="
|
874
|
-
<script type="text/javascript">moveProgressBar('48.
|
875
|
-
<dd class="example passed"><span class="passed_spec_name">etracts the data when given at true</span><span class='duration'>0.
|
942
|
+
<dt id="example_group_71" class="passed">:extract</dt>
|
943
|
+
<script type="text/javascript">moveProgressBar('48.8');</script>
|
944
|
+
<dd class="example passed"><span class="passed_spec_name">etracts the data when given at true</span><span class='duration'>0.00009s</span></dd>
|
876
945
|
<script type="text/javascript">moveProgressBar('49.2');</script>
|
877
|
-
<dd class="example passed"><span class="passed_spec_name">doesn't extract the data when given at false</span><span class='duration'>0.
|
946
|
+
<dd class="example passed"><span class="passed_spec_name">doesn't extract the data when given at false</span><span class='duration'>0.00010s</span></dd>
|
878
947
|
</dl>
|
879
948
|
</div>
|
880
|
-
<div id="
|
949
|
+
<div id="div_group_72" class="example_group passed">
|
881
950
|
<dl style="margin-left: 45px;">
|
882
|
-
<dt id="
|
883
|
-
<script type="text/javascript">moveProgressBar('49.
|
884
|
-
<dd class="example passed"><span class="passed_spec_name">casts the data when given at true</span><span class='duration'>0.
|
885
|
-
<script type="text/javascript">moveProgressBar('
|
951
|
+
<dt id="example_group_72" class="passed">:cast</dt>
|
952
|
+
<script type="text/javascript">moveProgressBar('49.5');</script>
|
953
|
+
<dd class="example passed"><span class="passed_spec_name">casts the data when given at true</span><span class='duration'>0.00013s</span></dd>
|
954
|
+
<script type="text/javascript">moveProgressBar('49.8');</script>
|
886
955
|
<dd class="example passed"><span class="passed_spec_name">doesn't cast the data when given at false</span><span class='duration'>0.00007s</span></dd>
|
887
956
|
</dl>
|
888
957
|
</div>
|
889
|
-
<div id="
|
958
|
+
<div id="div_group_73" class="example_group passed">
|
890
959
|
<dl style="margin-left: 15px;">
|
891
|
-
<dt id="
|
892
|
-
<script type="text/javascript">moveProgressBar('50.
|
960
|
+
<dt id="example_group_73" class="passed">array</dt>
|
961
|
+
<script type="text/javascript">moveProgressBar('50.1');</script>
|
893
962
|
<dd class="example passed"><span class="passed_spec_name">succeeds when given an instance of Array</span><span class='duration'>0.00007s</span></dd>
|
894
|
-
<script type="text/javascript">moveProgressBar('50.
|
895
|
-
<dd class="example passed"><span class="passed_spec_name">fails when given something else than an instance of Array</span><span class='duration'>0.
|
963
|
+
<script type="text/javascript">moveProgressBar('50.4');</script>
|
964
|
+
<dd class="example passed"><span class="passed_spec_name">fails when given something else than an instance of Array</span><span class='duration'>0.00014s</span></dd>
|
896
965
|
</dl>
|
897
966
|
</div>
|
898
|
-
<div id="
|
967
|
+
<div id="div_group_74" class="example_group passed">
|
899
968
|
<dl style="margin-left: 30px;">
|
900
|
-
<dt id="
|
969
|
+
<dt id="example_group_74" class="passed">options</dt>
|
901
970
|
</dl>
|
902
971
|
</div>
|
903
|
-
<div id="
|
972
|
+
<div id="div_group_75" class="example_group passed">
|
904
973
|
<dl style="margin-left: 45px;">
|
905
|
-
<dt id="
|
906
|
-
<script type="text/javascript">moveProgressBar('
|
974
|
+
<dt id="example_group_75" class="passed">:rename</dt>
|
975
|
+
<script type="text/javascript">moveProgressBar('50.7');</script>
|
907
976
|
<dd class="example passed"><span class="passed_spec_name">correctly renames a key when the value is valid</span><span class='duration'>0.00007s</span></dd>
|
908
|
-
<script type="text/javascript">moveProgressBar('51.
|
909
|
-
<dd class="example passed"><span class="passed_spec_name">correctly doesn't rename a key when the value is invalid</span><span class='duration'>0.
|
977
|
+
<script type="text/javascript">moveProgressBar('51.1');</script>
|
978
|
+
<dd class="example passed"><span class="passed_spec_name">correctly doesn't rename a key when the value is invalid</span><span class='duration'>0.00014s</span></dd>
|
910
979
|
</dl>
|
911
980
|
</div>
|
912
|
-
<div id="
|
981
|
+
<div id="div_group_76" class="example_group passed">
|
913
982
|
<dl style="margin-left: 45px;">
|
914
|
-
<dt id="
|
915
|
-
<script type="text/javascript">moveProgressBar('51.
|
983
|
+
<dt id="example_group_76" class="passed">:dependency</dt>
|
984
|
+
<script type="text/javascript">moveProgressBar('51.4');</script>
|
916
985
|
<dd class="example passed"><span class="passed_spec_name">succeeds when a dependency is given as a key and respected</span><span class='duration'>0.00007s</span></dd>
|
917
|
-
<script type="text/javascript">moveProgressBar('
|
918
|
-
<dd class="example passed"><span class="passed_spec_name">fails when a dependency is not respected</span><span class='duration'>0.
|
986
|
+
<script type="text/javascript">moveProgressBar('51.7');</script>
|
987
|
+
<dd class="example passed"><span class="passed_spec_name">fails when a dependency is not respected</span><span class='duration'>0.00014s</span></dd>
|
919
988
|
</dl>
|
920
989
|
</div>
|
921
|
-
<div id="
|
990
|
+
<div id="div_group_77" class="example_group passed">
|
922
991
|
<dl style="margin-left: 45px;">
|
923
|
-
<dt id="
|
924
|
-
<script type="text/javascript">moveProgressBar('52.
|
925
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when dependencies are given as an array and respected</span><span class='duration'>0.
|
926
|
-
<script type="text/javascript">moveProgressBar('52.
|
992
|
+
<dt id="example_group_77" class="passed">:dependencies</dt>
|
993
|
+
<script type="text/javascript">moveProgressBar('52.0');</script>
|
994
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when dependencies are given as an array and respected</span><span class='duration'>0.00007s</span></dd>
|
995
|
+
<script type="text/javascript">moveProgressBar('52.3');</script>
|
927
996
|
<dd class="example passed"><span class="passed_spec_name">fails when one of the dependencies is not respected</span><span class='duration'>0.00011s</span></dd>
|
928
997
|
</dl>
|
929
998
|
</div>
|
930
|
-
<div id="
|
999
|
+
<div id="div_group_78" class="example_group passed">
|
931
1000
|
<dl style="margin-left: 45px;">
|
932
|
-
<dt id="
|
933
|
-
<script type="text/javascript">moveProgressBar('
|
934
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when a not required key is not given, but filters nothing</span><span class='duration'>0.
|
935
|
-
<script type="text/javascript">moveProgressBar('
|
936
|
-
<dd class="example passed"><span class="passed_spec_name">suceeds when a key has a required option to false, and is not given, but filters nothing</span><span class='duration'>0.
|
937
|
-
<script type="text/javascript">moveProgressBar('53.
|
938
|
-
<dd class="example passed"><span class="passed_spec_name">fails when a required key is not given</span><span class='duration'>0.
|
1001
|
+
<dt id="example_group_78" class="passed">:required</dt>
|
1002
|
+
<script type="text/javascript">moveProgressBar('52.6');</script>
|
1003
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when a not required key is not given, but filters nothing</span><span class='duration'>0.00013s</span></dd>
|
1004
|
+
<script type="text/javascript">moveProgressBar('52.9');</script>
|
1005
|
+
<dd class="example passed"><span class="passed_spec_name">suceeds when a key has a required option to false, and is not given, but filters nothing</span><span class='duration'>0.00012s</span></dd>
|
1006
|
+
<script type="text/javascript">moveProgressBar('53.3');</script>
|
1007
|
+
<dd class="example passed"><span class="passed_spec_name">fails when a required key is not given</span><span class='duration'>0.00011s</span></dd>
|
939
1008
|
</dl>
|
940
1009
|
</div>
|
941
|
-
<div id="
|
1010
|
+
<div id="div_group_79" class="example_group passed">
|
942
1011
|
<dl style="margin-left: 45px;">
|
943
|
-
<dt id="
|
944
|
-
<script type="text/javascript">moveProgressBar('
|
1012
|
+
<dt id="example_group_79" class="passed">:in</dt>
|
1013
|
+
<script type="text/javascript">moveProgressBar('53.6');</script>
|
945
1014
|
<dd class="example passed"><span class="passed_spec_name">succeeds when the value is effectively in the possible values</span><span class='duration'>0.00007s</span></dd>
|
946
|
-
<script type="text/javascript">moveProgressBar('
|
947
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds if there are no values</span><span class='duration'>0.
|
948
|
-
<script type="text/javascript">moveProgressBar('54.
|
949
|
-
<dd class="example passed"><span class="passed_spec_name">fails if the value is not in the possible values</span><span class='duration'>0.
|
1015
|
+
<script type="text/javascript">moveProgressBar('53.9');</script>
|
1016
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds if there are no values</span><span class='duration'>0.00009s</span></dd>
|
1017
|
+
<script type="text/javascript">moveProgressBar('54.2');</script>
|
1018
|
+
<dd class="example passed"><span class="passed_spec_name">fails if the value is not in the possible values</span><span class='duration'>0.00012s</span></dd>
|
950
1019
|
</dl>
|
951
1020
|
</div>
|
952
|
-
<div id="
|
1021
|
+
<div id="div_group_80" class="example_group passed">
|
953
1022
|
<dl style="margin-left: 45px;">
|
954
|
-
<dt id="
|
955
|
-
<script type="text/javascript">moveProgressBar('
|
1023
|
+
<dt id="example_group_80" class="passed">:equals</dt>
|
1024
|
+
<script type="text/javascript">moveProgressBar('54.5');</script>
|
956
1025
|
<dd class="example passed"><span class="passed_spec_name">succeeds when the value is equal to the given value</span><span class='duration'>0.00007s</span></dd>
|
957
|
-
<script type="text/javascript">moveProgressBar('
|
958
|
-
<dd class="example passed"><span class="passed_spec_name">fails if the value is not equal to the given value</span><span class='duration'>0.
|
1026
|
+
<script type="text/javascript">moveProgressBar('54.8');</script>
|
1027
|
+
<dd class="example passed"><span class="passed_spec_name">fails if the value is not equal to the given value</span><span class='duration'>0.00011s</span></dd>
|
959
1028
|
</dl>
|
960
1029
|
</div>
|
961
|
-
<div id="
|
1030
|
+
<div id="div_group_81" class="example_group passed">
|
962
1031
|
<dl style="margin-left: 45px;">
|
963
|
-
<dt id="
|
964
|
-
<script type="text/javascript">moveProgressBar('
|
965
|
-
<dd class="example passed"><span class="passed_spec_name">
|
966
|
-
<script type="text/javascript">moveProgressBar('
|
1032
|
+
<dt id="example_group_81" class="passed">:equals_key</dt>
|
1033
|
+
<script type="text/javascript">moveProgressBar('55.2');</script>
|
1034
|
+
<dd class="example passed"><span class="passed_spec_name">suceeds when the key is present and equals to the other key</span><span class='duration'>0.00008s</span></dd>
|
1035
|
+
<script type="text/javascript">moveProgressBar('55.5');</script>
|
1036
|
+
<dd class="example passed"><span class="passed_spec_name">fails when the key is present, but not equals to the other key</span><span class='duration'>0.00014s</span></dd>
|
1037
|
+
<script type="text/javascript">moveProgressBar('55.8');</script>
|
1038
|
+
<dd class="example passed"><span class="passed_spec_name">fails when the key to compare the validated key with is not in the hash</span><span class='duration'>0.00011s</span></dd>
|
1039
|
+
</dl>
|
1040
|
+
</div>
|
1041
|
+
<div id="div_group_82" class="example_group passed">
|
1042
|
+
<dl style="margin-left: 45px;">
|
1043
|
+
<dt id="example_group_82" class="passed">:extract</dt>
|
1044
|
+
<script type="text/javascript">moveProgressBar('56.1');</script>
|
1045
|
+
<dd class="example passed"><span class="passed_spec_name">etracts the data when given at true</span><span class='duration'>0.00009s</span></dd>
|
1046
|
+
<script type="text/javascript">moveProgressBar('56.4');</script>
|
967
1047
|
<dd class="example passed"><span class="passed_spec_name">doesn't extract the data when given at false</span><span class='duration'>0.00007s</span></dd>
|
968
1048
|
</dl>
|
969
1049
|
</div>
|
970
|
-
<div id="
|
1050
|
+
<div id="div_group_83" class="example_group passed">
|
971
1051
|
<dl style="margin-left: 45px;">
|
972
|
-
<dt id="
|
1052
|
+
<dt id="example_group_83" class="passed">:cast</dt>
|
973
1053
|
<script type="text/javascript">moveProgressBar('56.7');</script>
|
974
1054
|
<dd class="example passed"><span class="passed_spec_name">casts the data when given at true</span><span class='duration'>0.00007s</span></dd>
|
975
1055
|
<script type="text/javascript">moveProgressBar('57.0');</script>
|
976
1056
|
<dd class="example passed"><span class="passed_spec_name">doesn't cast the data when given at false</span><span class='duration'>0.00007s</span></dd>
|
977
1057
|
</dl>
|
978
1058
|
</div>
|
979
|
-
<div id="
|
1059
|
+
<div id="div_group_84" class="example_group passed">
|
980
1060
|
<dl style="margin-left: 45px;">
|
981
|
-
<dt id="
|
1061
|
+
<dt id="example_group_84" class="passed">:contains</dt>
|
982
1062
|
<script type="text/javascript">moveProgressBar('57.4');</script>
|
983
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds if all values are contained</span><span class='duration'>0.
|
984
|
-
<script type="text/javascript">moveProgressBar('57.
|
985
|
-
<dd class="example passed"><span class="passed_spec_name">fails if only some values are contained</span><span class='duration'>0.
|
986
|
-
<script type="text/javascript">moveProgressBar('58.
|
987
|
-
<dd class="example passed"><span class="passed_spec_name">fails if none of the values are contained</span><span class='duration'>0.
|
1063
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds if all values are contained</span><span class='duration'>0.00008s</span></dd>
|
1064
|
+
<script type="text/javascript">moveProgressBar('57.7');</script>
|
1065
|
+
<dd class="example passed"><span class="passed_spec_name">fails if only some values are contained</span><span class='duration'>0.00013s</span></dd>
|
1066
|
+
<script type="text/javascript">moveProgressBar('58.0');</script>
|
1067
|
+
<dd class="example passed"><span class="passed_spec_name">fails if none of the values are contained</span><span class='duration'>0.00011s</span></dd>
|
988
1068
|
</dl>
|
989
1069
|
</div>
|
990
|
-
<div id="
|
1070
|
+
<div id="div_group_85" class="example_group passed">
|
991
1071
|
<dl style="margin-left: 15px;">
|
992
|
-
<dt id="
|
993
|
-
<script type="text/javascript">moveProgressBar('58.
|
994
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when given an instance of Hash</span><span class='duration'>0.
|
995
|
-
<script type="text/javascript">moveProgressBar('58.
|
1072
|
+
<dt id="example_group_85" class="passed">hash</dt>
|
1073
|
+
<script type="text/javascript">moveProgressBar('58.3');</script>
|
1074
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when given an instance of Hash</span><span class='duration'>0.00008s</span></dd>
|
1075
|
+
<script type="text/javascript">moveProgressBar('58.6');</script>
|
996
1076
|
<dd class="example passed"><span class="passed_spec_name">fails when given something else than an instance of Hash</span><span class='duration'>0.00010s</span></dd>
|
997
1077
|
</dl>
|
998
1078
|
</div>
|
999
|
-
<div id="
|
1079
|
+
<div id="div_group_86" class="example_group passed">
|
1000
1080
|
<dl style="margin-left: 30px;">
|
1001
|
-
<dt id="
|
1081
|
+
<dt id="example_group_86" class="passed">options</dt>
|
1002
1082
|
</dl>
|
1003
1083
|
</div>
|
1004
|
-
<div id="
|
1084
|
+
<div id="div_group_87" class="example_group passed">
|
1005
1085
|
<dl style="margin-left: 45px;">
|
1006
|
-
<dt id="
|
1007
|
-
<script type="text/javascript">moveProgressBar('
|
1008
|
-
<dd class="example passed"><span class="passed_spec_name">correctly renames a key when the value is valid</span><span class='duration'>0.
|
1009
|
-
<script type="text/javascript">moveProgressBar('59.
|
1010
|
-
<dd class="example passed"><span class="passed_spec_name">correctly doesn't rename a key when the value is invalid</span><span class='duration'>0.
|
1086
|
+
<dt id="example_group_87" class="passed">:rename</dt>
|
1087
|
+
<script type="text/javascript">moveProgressBar('58.9');</script>
|
1088
|
+
<dd class="example passed"><span class="passed_spec_name">correctly renames a key when the value is valid</span><span class='duration'>0.00009s</span></dd>
|
1089
|
+
<script type="text/javascript">moveProgressBar('59.3');</script>
|
1090
|
+
<dd class="example passed"><span class="passed_spec_name">correctly doesn't rename a key when the value is invalid</span><span class='duration'>0.00011s</span></dd>
|
1011
1091
|
</dl>
|
1012
1092
|
</div>
|
1013
|
-
<div id="
|
1093
|
+
<div id="div_group_88" class="example_group passed">
|
1014
1094
|
<dl style="margin-left: 45px;">
|
1015
|
-
<dt id="
|
1016
|
-
<script type="text/javascript">moveProgressBar('59.
|
1095
|
+
<dt id="example_group_88" class="passed">:dependency</dt>
|
1096
|
+
<script type="text/javascript">moveProgressBar('59.6');</script>
|
1017
1097
|
<dd class="example passed"><span class="passed_spec_name">succeeds when a dependency is given as a key and respected</span><span class='duration'>0.00007s</span></dd>
|
1018
|
-
<script type="text/javascript">moveProgressBar('
|
1019
|
-
<dd class="example passed"><span class="passed_spec_name">fails when a dependency is not respected</span><span class='duration'>0.
|
1098
|
+
<script type="text/javascript">moveProgressBar('59.9');</script>
|
1099
|
+
<dd class="example passed"><span class="passed_spec_name">fails when a dependency is not respected</span><span class='duration'>0.00015s</span></dd>
|
1020
1100
|
</dl>
|
1021
1101
|
</div>
|
1022
|
-
<div id="
|
1102
|
+
<div id="div_group_89" class="example_group passed">
|
1023
1103
|
<dl style="margin-left: 45px;">
|
1024
|
-
<dt id="
|
1025
|
-
<script type="text/javascript">moveProgressBar('60.
|
1026
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when dependencies are given as an array and respected</span><span class='duration'>0.
|
1027
|
-
<script type="text/javascript">moveProgressBar('60.
|
1028
|
-
<dd class="example passed"><span class="passed_spec_name">fails when one of the dependencies is not respected</span><span class='duration'>0.
|
1104
|
+
<dt id="example_group_89" class="passed">:dependencies</dt>
|
1105
|
+
<script type="text/javascript">moveProgressBar('60.2');</script>
|
1106
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when dependencies are given as an array and respected</span><span class='duration'>0.00008s</span></dd>
|
1107
|
+
<script type="text/javascript">moveProgressBar('60.5');</script>
|
1108
|
+
<dd class="example passed"><span class="passed_spec_name">fails when one of the dependencies is not respected</span><span class='duration'>0.00018s</span></dd>
|
1029
1109
|
</dl>
|
1030
1110
|
</div>
|
1031
|
-
<div id="
|
1111
|
+
<div id="div_group_90" class="example_group passed">
|
1032
1112
|
<dl style="margin-left: 45px;">
|
1033
|
-
<dt id="
|
1034
|
-
<script type="text/javascript">moveProgressBar('
|
1035
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when a not required key is not given, but filters nothing</span><span class='duration'>0.
|
1036
|
-
<script type="text/javascript">moveProgressBar('61.
|
1037
|
-
<dd class="example passed"><span class="passed_spec_name">suceeds when a key has a required option to false, and is not given, but filters nothing</span><span class='duration'>0.
|
1038
|
-
<script type="text/javascript">moveProgressBar('
|
1113
|
+
<dt id="example_group_90" class="passed">:required</dt>
|
1114
|
+
<script type="text/javascript">moveProgressBar('60.8');</script>
|
1115
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when a not required key is not given, but filters nothing</span><span class='duration'>0.00014s</span></dd>
|
1116
|
+
<script type="text/javascript">moveProgressBar('61.1');</script>
|
1117
|
+
<dd class="example passed"><span class="passed_spec_name">suceeds when a key has a required option to false, and is not given, but filters nothing</span><span class='duration'>0.00013s</span></dd>
|
1118
|
+
<script type="text/javascript">moveProgressBar('61.5');</script>
|
1039
1119
|
<dd class="example passed"><span class="passed_spec_name">fails when a required key is not given</span><span class='duration'>0.00011s</span></dd>
|
1040
1120
|
</dl>
|
1041
1121
|
</div>
|
1042
|
-
<div id="
|
1122
|
+
<div id="div_group_91" class="example_group passed">
|
1043
1123
|
<dl style="margin-left: 45px;">
|
1044
|
-
<dt id="
|
1124
|
+
<dt id="example_group_91" class="passed">:in</dt>
|
1125
|
+
<script type="text/javascript">moveProgressBar('61.8');</script>
|
1126
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when the value is effectively in the possible values</span><span class='duration'>0.00007s</span></dd>
|
1127
|
+
<script type="text/javascript">moveProgressBar('62.1');</script>
|
1128
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds if there are no values</span><span class='duration'>0.00007s</span></dd>
|
1045
1129
|
<script type="text/javascript">moveProgressBar('62.4');</script>
|
1046
|
-
<dd class="example passed"><span class="passed_spec_name">
|
1130
|
+
<dd class="example passed"><span class="passed_spec_name">fails if the value is not in the possible values</span><span class='duration'>0.00012s</span></dd>
|
1131
|
+
</dl>
|
1132
|
+
</div>
|
1133
|
+
<div id="div_group_92" class="example_group passed">
|
1134
|
+
<dl style="margin-left: 45px;">
|
1135
|
+
<dt id="example_group_92" class="passed">:equals</dt>
|
1047
1136
|
<script type="text/javascript">moveProgressBar('62.7');</script>
|
1048
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds
|
1049
|
-
<script type="text/javascript">moveProgressBar('63.
|
1050
|
-
<dd class="example passed"><span class="passed_spec_name">fails if the value is not
|
1137
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when the value is equal to the given value</span><span class='duration'>0.00008s</span></dd>
|
1138
|
+
<script type="text/javascript">moveProgressBar('63.0');</script>
|
1139
|
+
<dd class="example passed"><span class="passed_spec_name">fails if the value is not equal to the given value</span><span class='duration'>0.00011s</span></dd>
|
1051
1140
|
</dl>
|
1052
1141
|
</div>
|
1053
|
-
<div id="
|
1142
|
+
<div id="div_group_93" class="example_group passed">
|
1054
1143
|
<dl style="margin-left: 45px;">
|
1055
|
-
<dt id="
|
1144
|
+
<dt id="example_group_93" class="passed">:equals_key</dt>
|
1056
1145
|
<script type="text/javascript">moveProgressBar('63.4');</script>
|
1057
|
-
<dd class="example passed"><span class="passed_spec_name">
|
1058
|
-
<script type="text/javascript">moveProgressBar('63.
|
1059
|
-
<dd class="example passed"><span class="passed_spec_name">fails
|
1146
|
+
<dd class="example passed"><span class="passed_spec_name">suceeds when the key is present and equals to the other key</span><span class='duration'>0.00007s</span></dd>
|
1147
|
+
<script type="text/javascript">moveProgressBar('63.7');</script>
|
1148
|
+
<dd class="example passed"><span class="passed_spec_name">fails when the key is present, but not equals to the other key</span><span class='duration'>0.00012s</span></dd>
|
1149
|
+
<script type="text/javascript">moveProgressBar('64.0');</script>
|
1150
|
+
<dd class="example passed"><span class="passed_spec_name">fails when the key to compare the validated key with is not in the hash</span><span class='duration'>0.00014s</span></dd>
|
1060
1151
|
</dl>
|
1061
1152
|
</div>
|
1062
|
-
<div id="
|
1153
|
+
<div id="div_group_94" class="example_group passed">
|
1063
1154
|
<dl style="margin-left: 45px;">
|
1064
|
-
<dt id="
|
1065
|
-
<script type="text/javascript">moveProgressBar('64.
|
1066
|
-
<dd class="example passed"><span class="passed_spec_name">etracts the data when given at true</span><span class='duration'>0.
|
1067
|
-
<script type="text/javascript">moveProgressBar('64.
|
1068
|
-
<dd class="example passed"><span class="passed_spec_name">doesn't extract the data when given at false</span><span class='duration'>0.
|
1155
|
+
<dt id="example_group_94" class="passed">:extract</dt>
|
1156
|
+
<script type="text/javascript">moveProgressBar('64.3');</script>
|
1157
|
+
<dd class="example passed"><span class="passed_spec_name">etracts the data when given at true</span><span class='duration'>0.00007s</span></dd>
|
1158
|
+
<script type="text/javascript">moveProgressBar('64.6');</script>
|
1159
|
+
<dd class="example passed"><span class="passed_spec_name">doesn't extract the data when given at false</span><span class='duration'>0.00015s</span></dd>
|
1069
1160
|
</dl>
|
1070
1161
|
</div>
|
1071
|
-
<div id="
|
1162
|
+
<div id="div_group_95" class="example_group passed">
|
1072
1163
|
<dl style="margin-left: 45px;">
|
1073
|
-
<dt id="
|
1074
|
-
<script type="text/javascript">moveProgressBar('64.
|
1075
|
-
<dd class="example passed"><span class="passed_spec_name">casts the data when given at true</span><span class='duration'>0.
|
1164
|
+
<dt id="example_group_95" class="passed">:cast</dt>
|
1165
|
+
<script type="text/javascript">moveProgressBar('64.9');</script>
|
1166
|
+
<dd class="example passed"><span class="passed_spec_name">casts the data when given at true</span><span class='duration'>0.00007s</span></dd>
|
1076
1167
|
<script type="text/javascript">moveProgressBar('65.2');</script>
|
1077
|
-
<dd class="example passed"><span class="passed_spec_name">doesn't cast the data when given at false</span><span class='duration'>0.
|
1168
|
+
<dd class="example passed"><span class="passed_spec_name">doesn't cast the data when given at false</span><span class='duration'>0.00008s</span></dd>
|
1078
1169
|
</dl>
|
1079
1170
|
</div>
|
1080
|
-
<div id="
|
1171
|
+
<div id="div_group_96" class="example_group passed">
|
1081
1172
|
<dl style="margin-left: 45px;">
|
1082
|
-
<dt id="
|
1173
|
+
<dt id="example_group_96" class="passed">:contains</dt>
|
1083
1174
|
<script type="text/javascript">moveProgressBar('65.6');</script>
|
1084
1175
|
<dd class="example passed"><span class="passed_spec_name">succeeds if all values are contained</span><span class='duration'>0.00007s</span></dd>
|
1085
1176
|
<script type="text/javascript">moveProgressBar('65.9');</script>
|
1086
|
-
<dd class="example passed"><span class="passed_spec_name">fails if only some values are contained</span><span class='duration'>0.
|
1087
|
-
<script type="text/javascript">moveProgressBar('66.
|
1088
|
-
<dd class="example passed"><span class="passed_spec_name">fails if none of the values are contained</span><span class='duration'>0.
|
1177
|
+
<dd class="example passed"><span class="passed_spec_name">fails if only some values are contained</span><span class='duration'>0.00012s</span></dd>
|
1178
|
+
<script type="text/javascript">moveProgressBar('66.2');</script>
|
1179
|
+
<dd class="example passed"><span class="passed_spec_name">fails if none of the values are contained</span><span class='duration'>0.00013s</span></dd>
|
1089
1180
|
</dl>
|
1090
1181
|
</div>
|
1091
|
-
<div id="
|
1182
|
+
<div id="div_group_97" class="example_group passed">
|
1092
1183
|
<dl style="margin-left: 45px;">
|
1093
|
-
<dt id="
|
1094
|
-
<script type="text/javascript">moveProgressBar('66.
|
1184
|
+
<dt id="example_group_97" class="passed">:has_keys</dt>
|
1185
|
+
<script type="text/javascript">moveProgressBar('66.5');</script>
|
1095
1186
|
<dd class="example passed"><span class="passed_spec_name">succeeds if all keys are contained in the hash</span><span class='duration'>0.00007s</span></dd>
|
1096
|
-
<script type="text/javascript">moveProgressBar('
|
1097
|
-
<dd class="example passed"><span class="passed_spec_name">fails if not all keys are given in the hash</span><span class='duration'>0.
|
1098
|
-
<script type="text/javascript">moveProgressBar('67.
|
1099
|
-
<dd class="example passed"><span class="passed_spec_name">fails if no keys are contained in the hash</span><span class='duration'>0.
|
1187
|
+
<script type="text/javascript">moveProgressBar('66.8');</script>
|
1188
|
+
<dd class="example passed"><span class="passed_spec_name">fails if not all keys are given in the hash</span><span class='duration'>0.00012s</span></dd>
|
1189
|
+
<script type="text/javascript">moveProgressBar('67.1');</script>
|
1190
|
+
<dd class="example passed"><span class="passed_spec_name">fails if no keys are contained in the hash</span><span class='duration'>0.00011s</span></dd>
|
1100
1191
|
</dl>
|
1101
1192
|
</div>
|
1102
|
-
<div id="
|
1193
|
+
<div id="div_group_98" class="example_group passed">
|
1103
1194
|
<dl style="margin-left: 15px;">
|
1104
|
-
<dt id="
|
1105
|
-
<script type="text/javascript">moveProgressBar('67.
|
1195
|
+
<dt id="example_group_98" class="passed">boolean</dt>
|
1196
|
+
<script type="text/javascript">moveProgressBar('67.5');</script>
|
1106
1197
|
<dd class="example passed"><span class="passed_spec_name">succeeds when given a boolean</span><span class='duration'>0.00007s</span></dd>
|
1107
|
-
<script type="text/javascript">moveProgressBar('
|
1108
|
-
<dd class="example passed"><span class="passed_spec_name">fails when not given a boolean</span><span class='duration'>0.
|
1198
|
+
<script type="text/javascript">moveProgressBar('67.8');</script>
|
1199
|
+
<dd class="example passed"><span class="passed_spec_name">fails when not given a boolean</span><span class='duration'>0.00012s</span></dd>
|
1109
1200
|
</dl>
|
1110
1201
|
</div>
|
1111
|
-
<div id="
|
1202
|
+
<div id="div_group_99" class="example_group passed">
|
1112
1203
|
<dl style="margin-left: 30px;">
|
1113
|
-
<dt id="
|
1204
|
+
<dt id="example_group_99" class="passed">options</dt>
|
1114
1205
|
</dl>
|
1115
1206
|
</div>
|
1116
|
-
<div id="
|
1207
|
+
<div id="div_group_100" class="example_group passed">
|
1117
1208
|
<dl style="margin-left: 45px;">
|
1118
|
-
<dt id="
|
1119
|
-
<script type="text/javascript">moveProgressBar('68.
|
1209
|
+
<dt id="example_group_100" class="passed">:rename</dt>
|
1210
|
+
<script type="text/javascript">moveProgressBar('68.1');</script>
|
1120
1211
|
<dd class="example passed"><span class="passed_spec_name">correctly renames a key when the value is valid</span><span class='duration'>0.00007s</span></dd>
|
1212
|
+
<script type="text/javascript">moveProgressBar('68.4');</script>
|
1213
|
+
<dd class="example passed"><span class="passed_spec_name">correctly doesn't rename a key when the value is invalid</span><span class='duration'>0.00013s</span></dd>
|
1214
|
+
</dl>
|
1215
|
+
</div>
|
1216
|
+
<div id="div_group_101" class="example_group passed">
|
1217
|
+
<dl style="margin-left: 45px;">
|
1218
|
+
<dt id="example_group_101" class="passed">:dependency</dt>
|
1121
1219
|
<script type="text/javascript">moveProgressBar('68.7');</script>
|
1122
|
-
<dd class="example passed"><span class="passed_spec_name">
|
1220
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when a dependency is given as a key and respected</span><span class='duration'>0.01168s</span></dd>
|
1221
|
+
<script type="text/javascript">moveProgressBar('69.0');</script>
|
1222
|
+
<dd class="example passed"><span class="passed_spec_name">fails when a dependency is not respected</span><span class='duration'>0.00029s</span></dd>
|
1123
1223
|
</dl>
|
1124
1224
|
</div>
|
1125
|
-
<div id="
|
1225
|
+
<div id="div_group_102" class="example_group passed">
|
1126
1226
|
<dl style="margin-left: 45px;">
|
1127
|
-
<dt id="
|
1128
|
-
<script type="text/javascript">moveProgressBar('69.
|
1129
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when
|
1130
|
-
<script type="text/javascript">moveProgressBar('69.
|
1131
|
-
<dd class="example passed"><span class="passed_spec_name">fails when
|
1227
|
+
<dt id="example_group_102" class="passed">:dependencies</dt>
|
1228
|
+
<script type="text/javascript">moveProgressBar('69.4');</script>
|
1229
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when dependencies are given as an array and respected</span><span class='duration'>0.00008s</span></dd>
|
1230
|
+
<script type="text/javascript">moveProgressBar('69.7');</script>
|
1231
|
+
<dd class="example passed"><span class="passed_spec_name">fails when one of the dependencies is not respected</span><span class='duration'>0.00017s</span></dd>
|
1132
1232
|
</dl>
|
1133
1233
|
</div>
|
1134
|
-
<div id="
|
1234
|
+
<div id="div_group_103" class="example_group passed">
|
1135
1235
|
<dl style="margin-left: 45px;">
|
1136
|
-
<dt id="
|
1137
|
-
<script type="text/javascript">moveProgressBar('
|
1138
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when
|
1139
|
-
<script type="text/javascript">moveProgressBar('70.
|
1140
|
-
<dd class="example passed"><span class="passed_spec_name">
|
1236
|
+
<dt id="example_group_103" class="passed">:required</dt>
|
1237
|
+
<script type="text/javascript">moveProgressBar('70.0');</script>
|
1238
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when a not required key is not given, but filters nothing</span><span class='duration'>0.00015s</span></dd>
|
1239
|
+
<script type="text/javascript">moveProgressBar('70.3');</script>
|
1240
|
+
<dd class="example passed"><span class="passed_spec_name">suceeds when a key has a required option to false, and is not given, but filters nothing</span><span class='duration'>0.00017s</span></dd>
|
1241
|
+
<script type="text/javascript">moveProgressBar('70.6');</script>
|
1242
|
+
<dd class="example passed"><span class="passed_spec_name">fails when a required key is not given</span><span class='duration'>0.00012s</span></dd>
|
1141
1243
|
</dl>
|
1142
1244
|
</div>
|
1143
|
-
<div id="
|
1245
|
+
<div id="div_group_104" class="example_group passed">
|
1144
1246
|
<dl style="margin-left: 45px;">
|
1145
|
-
<dt id="
|
1146
|
-
<script type="text/javascript">moveProgressBar('70.5');</script>
|
1147
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when a not required key is not given, but filters nothing</span><span class='duration'>0.01153s</span></dd>
|
1247
|
+
<dt id="example_group_104" class="passed">:in</dt>
|
1148
1248
|
<script type="text/javascript">moveProgressBar('70.9');</script>
|
1149
|
-
<dd class="example passed"><span class="passed_spec_name">
|
1249
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when the value is effectively in the possible values</span><span class='duration'>0.00011s</span></dd>
|
1150
1250
|
<script type="text/javascript">moveProgressBar('71.2');</script>
|
1151
|
-
<dd class="example passed"><span class="passed_spec_name">
|
1251
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds if there are no values</span><span class='duration'>0.00007s</span></dd>
|
1252
|
+
<script type="text/javascript">moveProgressBar('71.6');</script>
|
1253
|
+
<dd class="example passed"><span class="passed_spec_name">fails if the value is not in the possible values</span><span class='duration'>0.00014s</span></dd>
|
1152
1254
|
</dl>
|
1153
1255
|
</div>
|
1154
|
-
<div id="
|
1256
|
+
<div id="div_group_105" class="example_group passed">
|
1155
1257
|
<dl style="margin-left: 45px;">
|
1156
|
-
<dt id="
|
1157
|
-
<script type="text/javascript">moveProgressBar('71.6');</script>
|
1158
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when the value is effectively in the possible values</span><span class='duration'>0.00010s</span></dd>
|
1258
|
+
<dt id="example_group_105" class="passed">:equals</dt>
|
1159
1259
|
<script type="text/javascript">moveProgressBar('71.9');</script>
|
1160
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds
|
1161
|
-
<script type="text/javascript">moveProgressBar('72.
|
1162
|
-
<dd class="example passed"><span class="passed_spec_name">fails if the value is not
|
1260
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when the value is equal to the given value</span><span class='duration'>0.00007s</span></dd>
|
1261
|
+
<script type="text/javascript">moveProgressBar('72.2');</script>
|
1262
|
+
<dd class="example passed"><span class="passed_spec_name">fails if the value is not equal to the given value</span><span class='duration'>0.00012s</span></dd>
|
1163
1263
|
</dl>
|
1164
1264
|
</div>
|
1165
|
-
<div id="
|
1265
|
+
<div id="div_group_106" class="example_group passed">
|
1166
1266
|
<dl style="margin-left: 45px;">
|
1167
|
-
<dt id="
|
1168
|
-
<script type="text/javascript">moveProgressBar('72.
|
1169
|
-
<dd class="example passed"><span class="passed_spec_name">
|
1170
|
-
<script type="text/javascript">moveProgressBar('
|
1171
|
-
<dd class="example passed"><span class="passed_spec_name">fails
|
1267
|
+
<dt id="example_group_106" class="passed">:equals_key</dt>
|
1268
|
+
<script type="text/javascript">moveProgressBar('72.5');</script>
|
1269
|
+
<dd class="example passed"><span class="passed_spec_name">suceeds when the key is present and equals to the other key</span><span class='duration'>0.00010s</span></dd>
|
1270
|
+
<script type="text/javascript">moveProgressBar('72.8');</script>
|
1271
|
+
<dd class="example passed"><span class="passed_spec_name">fails when the key is present, but not equals to the other key</span><span class='duration'>0.00012s</span></dd>
|
1272
|
+
<script type="text/javascript">moveProgressBar('73.1');</script>
|
1273
|
+
<dd class="example passed"><span class="passed_spec_name">fails when the key to compare the validated key with is not in the hash</span><span class='duration'>0.00014s</span></dd>
|
1172
1274
|
</dl>
|
1173
1275
|
</div>
|
1174
|
-
<div id="
|
1276
|
+
<div id="div_group_107" class="example_group passed">
|
1175
1277
|
<dl style="margin-left: 45px;">
|
1176
|
-
<dt id="
|
1177
|
-
<script type="text/javascript">moveProgressBar('73.
|
1178
|
-
<dd class="example passed"><span class="passed_spec_name">etracts the data when given at true</span><span class='duration'>0.
|
1179
|
-
<script type="text/javascript">moveProgressBar('73.
|
1278
|
+
<dt id="example_group_107" class="passed">:extract</dt>
|
1279
|
+
<script type="text/javascript">moveProgressBar('73.5');</script>
|
1280
|
+
<dd class="example passed"><span class="passed_spec_name">etracts the data when given at true</span><span class='duration'>0.00007s</span></dd>
|
1281
|
+
<script type="text/javascript">moveProgressBar('73.8');</script>
|
1180
1282
|
<dd class="example passed"><span class="passed_spec_name">doesn't extract the data when given at false</span><span class='duration'>0.00008s</span></dd>
|
1181
1283
|
</dl>
|
1182
1284
|
</div>
|
1183
|
-
<div id="
|
1285
|
+
<div id="div_group_108" class="example_group passed">
|
1184
1286
|
<dl style="margin-left: 45px;">
|
1185
|
-
<dt id="
|
1287
|
+
<dt id="example_group_108" class="passed">:cast</dt>
|
1186
1288
|
<script type="text/javascript">moveProgressBar('74.1');</script>
|
1187
|
-
<dd class="example passed"><span class="passed_spec_name">casts the data when given at true</span><span class='duration'>0.
|
1289
|
+
<dd class="example passed"><span class="passed_spec_name">casts the data when given at true</span><span class='duration'>0.00008s</span></dd>
|
1188
1290
|
<script type="text/javascript">moveProgressBar('74.4');</script>
|
1189
|
-
<dd class="example passed"><span class="passed_spec_name">doesn't cast the data when given at false</span><span class='duration'>0.
|
1291
|
+
<dd class="example passed"><span class="passed_spec_name">doesn't cast the data when given at false</span><span class='duration'>0.00007s</span></dd>
|
1190
1292
|
</dl>
|
1191
1293
|
</div>
|
1192
|
-
<div id="
|
1294
|
+
<div id="div_group_109" class="example_group passed">
|
1193
1295
|
<dl style="margin-left: 15px;">
|
1194
|
-
<dt id="
|
1195
|
-
<script type="text/javascript">moveProgressBar('74.
|
1296
|
+
<dt id="example_group_109" class="passed">ssid</dt>
|
1297
|
+
<script type="text/javascript">moveProgressBar('74.7');</script>
|
1196
1298
|
<dd class="example passed"><span class="passed_spec_name">succeeds when given a valid SSID</span><span class='duration'>0.00017s</span></dd>
|
1197
|
-
<script type="text/javascript">moveProgressBar('75.
|
1198
|
-
<dd class="example passed"><span class="passed_spec_name">fails when not given a SSID</span><span class='duration'>0.
|
1299
|
+
<script type="text/javascript">moveProgressBar('75.0');</script>
|
1300
|
+
<dd class="example passed"><span class="passed_spec_name">fails when not given a SSID</span><span class='duration'>0.00015s</span></dd>
|
1199
1301
|
</dl>
|
1200
1302
|
</div>
|
1201
|
-
<div id="
|
1303
|
+
<div id="div_group_110" class="example_group passed">
|
1202
1304
|
<dl style="margin-left: 30px;">
|
1203
|
-
<dt id="
|
1305
|
+
<dt id="example_group_110" class="passed">options</dt>
|
1204
1306
|
</dl>
|
1205
1307
|
</div>
|
1206
|
-
<div id="
|
1308
|
+
<div id="div_group_111" class="example_group passed">
|
1207
1309
|
<dl style="margin-left: 45px;">
|
1208
|
-
<dt id="
|
1209
|
-
<script type="text/javascript">moveProgressBar('75.
|
1210
|
-
<dd class="example passed"><span class="passed_spec_name">correctly renames a key when the value is valid</span><span class='duration'>0.
|
1211
|
-
<script type="text/javascript">moveProgressBar('75.
|
1212
|
-
<dd class="example passed"><span class="passed_spec_name">correctly doesn't rename a key when the value is invalid</span><span class='duration'>0.
|
1310
|
+
<dt id="example_group_111" class="passed">:rename</dt>
|
1311
|
+
<script type="text/javascript">moveProgressBar('75.3');</script>
|
1312
|
+
<dd class="example passed"><span class="passed_spec_name">correctly renames a key when the value is valid</span><span class='duration'>0.00010s</span></dd>
|
1313
|
+
<script type="text/javascript">moveProgressBar('75.7');</script>
|
1314
|
+
<dd class="example passed"><span class="passed_spec_name">correctly doesn't rename a key when the value is invalid</span><span class='duration'>0.00016s</span></dd>
|
1213
1315
|
</dl>
|
1214
1316
|
</div>
|
1215
|
-
<div id="
|
1317
|
+
<div id="div_group_112" class="example_group passed">
|
1216
1318
|
<dl style="margin-left: 45px;">
|
1217
|
-
<dt id="
|
1218
|
-
<script type="text/javascript">moveProgressBar('76.
|
1219
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when a dependency is given as a key and respected</span><span class='duration'>0.
|
1220
|
-
<script type="text/javascript">moveProgressBar('76.
|
1319
|
+
<dt id="example_group_112" class="passed">:dependency</dt>
|
1320
|
+
<script type="text/javascript">moveProgressBar('76.0');</script>
|
1321
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when a dependency is given as a key and respected</span><span class='duration'>0.00010s</span></dd>
|
1322
|
+
<script type="text/javascript">moveProgressBar('76.3');</script>
|
1221
1323
|
<dd class="example passed"><span class="passed_spec_name">fails when a dependency is not respected</span><span class='duration'>0.00016s</span></dd>
|
1222
1324
|
</dl>
|
1223
1325
|
</div>
|
1224
|
-
<div id="
|
1326
|
+
<div id="div_group_113" class="example_group passed">
|
1225
1327
|
<dl style="margin-left: 45px;">
|
1226
|
-
<dt id="
|
1328
|
+
<dt id="example_group_113" class="passed">:dependencies</dt>
|
1329
|
+
<script type="text/javascript">moveProgressBar('76.6');</script>
|
1330
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when dependencies are given as an array and respected</span><span class='duration'>0.00010s</span></dd>
|
1227
1331
|
<script type="text/javascript">moveProgressBar('76.9');</script>
|
1228
|
-
<dd class="example passed"><span class="passed_spec_name">
|
1229
|
-
<script type="text/javascript">moveProgressBar('77.3');</script>
|
1230
|
-
<dd class="example passed"><span class="passed_spec_name">fails when one of the dependencies is not respected</span><span class='duration'>0.00021s</span></dd>
|
1332
|
+
<dd class="example passed"><span class="passed_spec_name">fails when one of the dependencies is not respected</span><span class='duration'>0.00016s</span></dd>
|
1231
1333
|
</dl>
|
1232
1334
|
</div>
|
1233
|
-
<div id="
|
1335
|
+
<div id="div_group_114" class="example_group passed">
|
1234
1336
|
<dl style="margin-left: 45px;">
|
1235
|
-
<dt id="
|
1337
|
+
<dt id="example_group_114" class="passed">:required</dt>
|
1338
|
+
<script type="text/javascript">moveProgressBar('77.2');</script>
|
1339
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when a not required key is not given, but filters nothing</span><span class='duration'>0.00018s</span></dd>
|
1236
1340
|
<script type="text/javascript">moveProgressBar('77.6');</script>
|
1237
|
-
<dd class="example passed"><span class="passed_spec_name">
|
1238
|
-
<script type="text/javascript">moveProgressBar('
|
1239
|
-
<dd class="example passed"><span class="passed_spec_name">
|
1240
|
-
<script type="text/javascript">moveProgressBar('78.3');</script>
|
1241
|
-
<dd class="example passed"><span class="passed_spec_name">fails when a required key is not given</span><span class='duration'>0.00017s</span></dd>
|
1341
|
+
<dd class="example passed"><span class="passed_spec_name">suceeds when a key has a required option to false, and is not given, but filters nothing</span><span class='duration'>0.00014s</span></dd>
|
1342
|
+
<script type="text/javascript">moveProgressBar('77.9');</script>
|
1343
|
+
<dd class="example passed"><span class="passed_spec_name">fails when a required key is not given</span><span class='duration'>0.00014s</span></dd>
|
1242
1344
|
</dl>
|
1243
1345
|
</div>
|
1244
|
-
<div id="
|
1346
|
+
<div id="div_group_115" class="example_group passed">
|
1245
1347
|
<dl style="margin-left: 45px;">
|
1246
|
-
<dt id="
|
1247
|
-
<script type="text/javascript">moveProgressBar('78.
|
1248
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when the value is effectively in the possible values</span><span class='duration'>0.
|
1249
|
-
<script type="text/javascript">moveProgressBar('
|
1250
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds if there are no values</span><span class='duration'>0.
|
1348
|
+
<dt id="example_group_115" class="passed">:in</dt>
|
1349
|
+
<script type="text/javascript">moveProgressBar('78.2');</script>
|
1350
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when the value is effectively in the possible values</span><span class='duration'>0.00009s</span></dd>
|
1351
|
+
<script type="text/javascript">moveProgressBar('78.5');</script>
|
1352
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds if there are no values</span><span class='duration'>0.00011s</span></dd>
|
1353
|
+
<script type="text/javascript">moveProgressBar('78.8');</script>
|
1354
|
+
<dd class="example passed"><span class="passed_spec_name">fails if the value is not in the possible values</span><span class='duration'>0.00014s</span></dd>
|
1355
|
+
</dl>
|
1356
|
+
</div>
|
1357
|
+
<div id="div_group_116" class="example_group passed">
|
1358
|
+
<dl style="margin-left: 45px;">
|
1359
|
+
<dt id="example_group_116" class="passed">:equals</dt>
|
1360
|
+
<script type="text/javascript">moveProgressBar('79.1');</script>
|
1361
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when the value is equal to the given value</span><span class='duration'>0.00010s</span></dd>
|
1251
1362
|
<script type="text/javascript">moveProgressBar('79.4');</script>
|
1252
|
-
<dd class="example passed"><span class="passed_spec_name">fails if the value is not
|
1363
|
+
<dd class="example passed"><span class="passed_spec_name">fails if the value is not equal to the given value</span><span class='duration'>0.00013s</span></dd>
|
1253
1364
|
</dl>
|
1254
1365
|
</div>
|
1255
|
-
<div id="
|
1366
|
+
<div id="div_group_117" class="example_group passed">
|
1256
1367
|
<dl style="margin-left: 45px;">
|
1257
|
-
<dt id="
|
1258
|
-
<script type="text/javascript">moveProgressBar('79.
|
1259
|
-
<dd class="example passed"><span class="passed_spec_name">
|
1368
|
+
<dt id="example_group_117" class="passed">:equals_key</dt>
|
1369
|
+
<script type="text/javascript">moveProgressBar('79.8');</script>
|
1370
|
+
<dd class="example passed"><span class="passed_spec_name">suceeds when the key is present and equals to the other key</span><span class='duration'>0.00009s</span></dd>
|
1260
1371
|
<script type="text/javascript">moveProgressBar('80.1');</script>
|
1261
|
-
<dd class="example passed"><span class="passed_spec_name">fails
|
1372
|
+
<dd class="example passed"><span class="passed_spec_name">fails when the key is present, but not equals to the other key</span><span class='duration'>0.00014s</span></dd>
|
1373
|
+
<script type="text/javascript">moveProgressBar('80.4');</script>
|
1374
|
+
<dd class="example passed"><span class="passed_spec_name">fails when the key to compare the validated key with is not in the hash</span><span class='duration'>0.00013s</span></dd>
|
1262
1375
|
</dl>
|
1263
1376
|
</div>
|
1264
|
-
<div id="
|
1377
|
+
<div id="div_group_118" class="example_group passed">
|
1265
1378
|
<dl style="margin-left: 45px;">
|
1266
|
-
<dt id="
|
1267
|
-
<script type="text/javascript">moveProgressBar('80.
|
1268
|
-
<dd class="example passed"><span class="passed_spec_name">etracts the data when given at true</span><span class='duration'>0.
|
1269
|
-
<script type="text/javascript">moveProgressBar('
|
1270
|
-
<dd class="example passed"><span class="passed_spec_name">doesn't extract the data when given at false</span><span class='duration'>0.
|
1379
|
+
<dt id="example_group_118" class="passed">:extract</dt>
|
1380
|
+
<script type="text/javascript">moveProgressBar('80.7');</script>
|
1381
|
+
<dd class="example passed"><span class="passed_spec_name">etracts the data when given at true</span><span class='duration'>0.00008s</span></dd>
|
1382
|
+
<script type="text/javascript">moveProgressBar('81.0');</script>
|
1383
|
+
<dd class="example passed"><span class="passed_spec_name">doesn't extract the data when given at false</span><span class='duration'>0.00009s</span></dd>
|
1271
1384
|
</dl>
|
1272
1385
|
</div>
|
1273
|
-
<div id="
|
1386
|
+
<div id="div_group_119" class="example_group passed">
|
1274
1387
|
<dl style="margin-left: 45px;">
|
1275
|
-
<dt id="
|
1276
|
-
<script type="text/javascript">moveProgressBar('81.
|
1277
|
-
<dd class="example passed"><span class="passed_spec_name">casts the data when given at true</span><span class='duration'>0.
|
1278
|
-
<script type="text/javascript">moveProgressBar('81.
|
1388
|
+
<dt id="example_group_119" class="passed">:cast</dt>
|
1389
|
+
<script type="text/javascript">moveProgressBar('81.3');</script>
|
1390
|
+
<dd class="example passed"><span class="passed_spec_name">casts the data when given at true</span><span class='duration'>0.00009s</span></dd>
|
1391
|
+
<script type="text/javascript">moveProgressBar('81.7');</script>
|
1279
1392
|
<dd class="example passed"><span class="passed_spec_name">doesn't cast the data when given at false</span><span class='duration'>0.00008s</span></dd>
|
1280
1393
|
</dl>
|
1281
1394
|
</div>
|
1282
|
-
<div id="
|
1395
|
+
<div id="div_group_120" class="example_group passed">
|
1283
1396
|
<dl style="margin-left: 15px;">
|
1284
|
-
<dt id="
|
1285
|
-
<script type="text/javascript">moveProgressBar('
|
1397
|
+
<dt id="example_group_120" class="passed">box</dt>
|
1398
|
+
<script type="text/javascript">moveProgressBar('82.0');</script>
|
1286
1399
|
<dd class="example passed"><span class="passed_spec_name">succeeds when given a valid box</span><span class='duration'>0.00012s</span></dd>
|
1287
|
-
<script type="text/javascript">moveProgressBar('82.
|
1288
|
-
<dd class="example passed"><span class="passed_spec_name">fails when not given a box</span><span class='duration'>0.
|
1400
|
+
<script type="text/javascript">moveProgressBar('82.3');</script>
|
1401
|
+
<dd class="example passed"><span class="passed_spec_name">fails when not given a box</span><span class='duration'>0.00011s</span></dd>
|
1289
1402
|
<script type="text/javascript">moveProgressBar('82.6');</script>
|
1290
1403
|
<dd class="example passed"><span class="passed_spec_name">fails with an invalid top longitude</span><span class='duration'>0.00011s</span></dd>
|
1291
1404
|
<script type="text/javascript">moveProgressBar('82.9');</script>
|
1292
|
-
<dd class="example passed"><span class="passed_spec_name">fails with an invalid top latitude</span><span class='duration'>0.
|
1293
|
-
<script type="text/javascript">moveProgressBar('83.
|
1405
|
+
<dd class="example passed"><span class="passed_spec_name">fails with an invalid top latitude</span><span class='duration'>0.00011s</span></dd>
|
1406
|
+
<script type="text/javascript">moveProgressBar('83.2');</script>
|
1294
1407
|
<dd class="example passed"><span class="passed_spec_name">fails with an invalid down longitude</span><span class='duration'>0.00011s</span></dd>
|
1295
|
-
<script type="text/javascript">moveProgressBar('83.
|
1296
|
-
<dd class="example passed"><span class="passed_spec_name">fails with an invalid down latitude</span><span class='duration'>0.
|
1408
|
+
<script type="text/javascript">moveProgressBar('83.5');</script>
|
1409
|
+
<dd class="example passed"><span class="passed_spec_name">fails with an invalid down latitude</span><span class='duration'>0.00012s</span></dd>
|
1297
1410
|
</dl>
|
1298
1411
|
</div>
|
1299
|
-
<div id="
|
1412
|
+
<div id="div_group_121" class="example_group passed">
|
1300
1413
|
<dl style="margin-left: 30px;">
|
1301
|
-
<dt id="
|
1414
|
+
<dt id="example_group_121" class="passed">options</dt>
|
1302
1415
|
</dl>
|
1303
1416
|
</div>
|
1304
|
-
<div id="
|
1417
|
+
<div id="div_group_122" class="example_group passed">
|
1305
1418
|
<dl style="margin-left: 45px;">
|
1306
|
-
<dt id="
|
1307
|
-
<script type="text/javascript">moveProgressBar('
|
1308
|
-
<dd class="example passed"><span class="passed_spec_name">correctly renames a key when the value is valid</span><span class='duration'>0.
|
1309
|
-
<script type="text/javascript">moveProgressBar('84.
|
1310
|
-
<dd class="example passed"><span class="passed_spec_name">correctly doesn't rename a key when the value is invalid</span><span class='duration'>0.
|
1419
|
+
<dt id="example_group_122" class="passed">:rename</dt>
|
1420
|
+
<script type="text/javascript">moveProgressBar('83.9');</script>
|
1421
|
+
<dd class="example passed"><span class="passed_spec_name">correctly renames a key when the value is valid</span><span class='duration'>0.00009s</span></dd>
|
1422
|
+
<script type="text/javascript">moveProgressBar('84.2');</script>
|
1423
|
+
<dd class="example passed"><span class="passed_spec_name">correctly doesn't rename a key when the value is invalid</span><span class='duration'>0.00012s</span></dd>
|
1311
1424
|
</dl>
|
1312
1425
|
</div>
|
1313
|
-
<div id="
|
1426
|
+
<div id="div_group_123" class="example_group passed">
|
1314
1427
|
<dl style="margin-left: 45px;">
|
1315
|
-
<dt id="
|
1316
|
-
<script type="text/javascript">moveProgressBar('84.
|
1317
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when a dependency is given as a key and respected</span><span class='duration'>0.
|
1318
|
-
<script type="text/javascript">moveProgressBar('
|
1319
|
-
<dd class="example passed"><span class="passed_spec_name">fails when a dependency is not respected</span><span class='duration'>0.
|
1428
|
+
<dt id="example_group_123" class="passed">:dependency</dt>
|
1429
|
+
<script type="text/javascript">moveProgressBar('84.5');</script>
|
1430
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when a dependency is given as a key and respected</span><span class='duration'>0.00009s</span></dd>
|
1431
|
+
<script type="text/javascript">moveProgressBar('84.8');</script>
|
1432
|
+
<dd class="example passed"><span class="passed_spec_name">fails when a dependency is not respected</span><span class='duration'>0.00012s</span></dd>
|
1320
1433
|
</dl>
|
1321
1434
|
</div>
|
1322
|
-
<div id="
|
1435
|
+
<div id="div_group_124" class="example_group passed">
|
1323
1436
|
<dl style="margin-left: 45px;">
|
1324
|
-
<dt id="
|
1325
|
-
<script type="text/javascript">moveProgressBar('85.
|
1437
|
+
<dt id="example_group_124" class="passed">:dependencies</dt>
|
1438
|
+
<script type="text/javascript">moveProgressBar('85.1');</script>
|
1326
1439
|
<dd class="example passed"><span class="passed_spec_name">succeeds when dependencies are given as an array and respected</span><span class='duration'>0.00011s</span></dd>
|
1327
|
-
<script type="text/javascript">moveProgressBar('85.
|
1328
|
-
<dd class="example passed"><span class="passed_spec_name">fails when one of the dependencies is not respected</span><span class='duration'>0.
|
1440
|
+
<script type="text/javascript">moveProgressBar('85.4');</script>
|
1441
|
+
<dd class="example passed"><span class="passed_spec_name">fails when one of the dependencies is not respected</span><span class='duration'>0.00018s</span></dd>
|
1329
1442
|
</dl>
|
1330
1443
|
</div>
|
1331
|
-
<div id="
|
1444
|
+
<div id="div_group_125" class="example_group passed">
|
1332
1445
|
<dl style="margin-left: 45px;">
|
1333
|
-
<dt id="
|
1446
|
+
<dt id="example_group_125" class="passed">:required</dt>
|
1447
|
+
<script type="text/javascript">moveProgressBar('85.8');</script>
|
1448
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when a not required key is not given, but filters nothing</span><span class='duration'>0.00018s</span></dd>
|
1334
1449
|
<script type="text/javascript">moveProgressBar('86.1');</script>
|
1335
|
-
<dd class="example passed"><span class="passed_spec_name">
|
1336
|
-
<script type="text/javascript">moveProgressBar('86.
|
1337
|
-
<dd class="example passed"><span class="passed_spec_name">
|
1338
|
-
<script type="text/javascript">moveProgressBar('86.8');</script>
|
1339
|
-
<dd class="example passed"><span class="passed_spec_name">fails when a required key is not given</span><span class='duration'>0.00016s</span></dd>
|
1450
|
+
<dd class="example passed"><span class="passed_spec_name">suceeds when a key has a required option to false, and is not given, but filters nothing</span><span class='duration'>0.00014s</span></dd>
|
1451
|
+
<script type="text/javascript">moveProgressBar('86.4');</script>
|
1452
|
+
<dd class="example passed"><span class="passed_spec_name">fails when a required key is not given</span><span class='duration'>0.00014s</span></dd>
|
1340
1453
|
</dl>
|
1341
1454
|
</div>
|
1342
|
-
<div id="
|
1455
|
+
<div id="div_group_126" class="example_group passed">
|
1343
1456
|
<dl style="margin-left: 45px;">
|
1344
|
-
<dt id="
|
1345
|
-
<script type="text/javascript">moveProgressBar('
|
1346
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when the value is effectively in the possible values</span><span class='duration'>0.
|
1347
|
-
<script type="text/javascript">moveProgressBar('87.
|
1348
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds if there are no values</span><span class='duration'>0.
|
1349
|
-
<script type="text/javascript">moveProgressBar('87.
|
1350
|
-
<dd class="example passed"><span class="passed_spec_name">fails if the value is not in the possible values</span><span class='duration'>0.
|
1457
|
+
<dt id="example_group_126" class="passed">:in</dt>
|
1458
|
+
<script type="text/javascript">moveProgressBar('86.7');</script>
|
1459
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when the value is effectively in the possible values</span><span class='duration'>0.00009s</span></dd>
|
1460
|
+
<script type="text/javascript">moveProgressBar('87.0');</script>
|
1461
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds if there are no values</span><span class='duration'>0.00011s</span></dd>
|
1462
|
+
<script type="text/javascript">moveProgressBar('87.3');</script>
|
1463
|
+
<dd class="example passed"><span class="passed_spec_name">fails if the value is not in the possible values</span><span class='duration'>0.00013s</span></dd>
|
1351
1464
|
</dl>
|
1352
1465
|
</div>
|
1353
|
-
<div id="
|
1466
|
+
<div id="div_group_127" class="example_group passed">
|
1354
1467
|
<dl style="margin-left: 45px;">
|
1355
|
-
<dt id="
|
1356
|
-
<script type="text/javascript">moveProgressBar('
|
1357
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when the value is equal to the given value</span><span class='duration'>0.
|
1468
|
+
<dt id="example_group_127" class="passed">:equals</dt>
|
1469
|
+
<script type="text/javascript">moveProgressBar('87.6');</script>
|
1470
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when the value is equal to the given value</span><span class='duration'>0.00010s</span></dd>
|
1471
|
+
<script type="text/javascript">moveProgressBar('88.0');</script>
|
1472
|
+
<dd class="example passed"><span class="passed_spec_name">fails if the value is not equal to the given value</span><span class='duration'>0.00013s</span></dd>
|
1473
|
+
</dl>
|
1474
|
+
</div>
|
1475
|
+
<div id="div_group_128" class="example_group passed">
|
1476
|
+
<dl style="margin-left: 45px;">
|
1477
|
+
<dt id="example_group_128" class="passed">:equals_key</dt>
|
1478
|
+
<script type="text/javascript">moveProgressBar('88.3');</script>
|
1479
|
+
<dd class="example passed"><span class="passed_spec_name">suceeds when the key is present and equals to the other key</span><span class='duration'>0.00009s</span></dd>
|
1358
1480
|
<script type="text/javascript">moveProgressBar('88.6');</script>
|
1359
|
-
<dd class="example passed"><span class="passed_spec_name">fails
|
1481
|
+
<dd class="example passed"><span class="passed_spec_name">fails when the key is present, but not equals to the other key</span><span class='duration'>0.00013s</span></dd>
|
1482
|
+
<script type="text/javascript">moveProgressBar('88.9');</script>
|
1483
|
+
<dd class="example passed"><span class="passed_spec_name">fails when the key to compare the validated key with is not in the hash</span><span class='duration'>0.00016s</span></dd>
|
1360
1484
|
</dl>
|
1361
1485
|
</div>
|
1362
|
-
<div id="
|
1486
|
+
<div id="div_group_129" class="example_group passed">
|
1363
1487
|
<dl style="margin-left: 45px;">
|
1364
|
-
<dt id="
|
1365
|
-
<script type="text/javascript">moveProgressBar('89.
|
1366
|
-
<dd class="example passed"><span class="passed_spec_name">etracts the data when given at true</span><span class='duration'>0.
|
1367
|
-
<script type="text/javascript">moveProgressBar('89.
|
1368
|
-
<dd class="example passed"><span class="passed_spec_name">doesn't extract the data when given at false</span><span class='duration'>0.
|
1488
|
+
<dt id="example_group_129" class="passed">:extract</dt>
|
1489
|
+
<script type="text/javascript">moveProgressBar('89.2');</script>
|
1490
|
+
<dd class="example passed"><span class="passed_spec_name">etracts the data when given at true</span><span class='duration'>0.00008s</span></dd>
|
1491
|
+
<script type="text/javascript">moveProgressBar('89.5');</script>
|
1492
|
+
<dd class="example passed"><span class="passed_spec_name">doesn't extract the data when given at false</span><span class='duration'>0.00009s</span></dd>
|
1369
1493
|
</dl>
|
1370
1494
|
</div>
|
1371
|
-
<div id="
|
1495
|
+
<div id="div_group_130" class="example_group passed">
|
1372
1496
|
<dl style="margin-left: 45px;">
|
1373
|
-
<dt id="
|
1374
|
-
<script type="text/javascript">moveProgressBar('89.
|
1497
|
+
<dt id="example_group_130" class="passed">:cast</dt>
|
1498
|
+
<script type="text/javascript">moveProgressBar('89.9');</script>
|
1375
1499
|
<dd class="example passed"><span class="passed_spec_name">casts the data when given at true</span><span class='duration'>0.00011s</span></dd>
|
1376
|
-
<script type="text/javascript">moveProgressBar('90.
|
1377
|
-
<dd class="example passed"><span class="passed_spec_name">doesn't cast the data when given at false</span><span class='duration'>0.
|
1500
|
+
<script type="text/javascript">moveProgressBar('90.2');</script>
|
1501
|
+
<dd class="example passed"><span class="passed_spec_name">doesn't cast the data when given at false</span><span class='duration'>0.00008s</span></dd>
|
1378
1502
|
</dl>
|
1379
1503
|
</div>
|
1380
|
-
<div id="
|
1504
|
+
<div id="div_group_131" class="example_group passed">
|
1381
1505
|
<dl style="margin-left: 45px;">
|
1382
|
-
<dt id="
|
1383
|
-
<script type="text/javascript">moveProgressBar('90.
|
1384
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds if the box is bigger than the one given with the at_least option</span><span class='duration'>0.
|
1385
|
-
<script type="text/javascript">moveProgressBar('90.
|
1386
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds if the box is equal than the one given with the at_least option</span><span class='duration'>0.
|
1506
|
+
<dt id="example_group_131" class="passed">:at_least</dt>
|
1507
|
+
<script type="text/javascript">moveProgressBar('90.5');</script>
|
1508
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds if the box is bigger than the one given with the at_least option</span><span class='duration'>0.00013s</span></dd>
|
1509
|
+
<script type="text/javascript">moveProgressBar('90.8');</script>
|
1510
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds if the box is equal than the one given with the at_least option</span><span class='duration'>0.00009s</span></dd>
|
1387
1511
|
<script type="text/javascript">moveProgressBar('91.1');</script>
|
1388
|
-
<dd class="example passed"><span class="passed_spec_name">fails if the box is smaller than the one given with the at_least option</span><span class='duration'>0.
|
1512
|
+
<dd class="example passed"><span class="passed_spec_name">fails if the box is smaller than the one given with the at_least option</span><span class='duration'>0.00013s</span></dd>
|
1389
1513
|
</dl>
|
1390
1514
|
</div>
|
1391
|
-
<div id="
|
1515
|
+
<div id="div_group_132" class="example_group passed">
|
1392
1516
|
<dl style="margin-left: 45px;">
|
1393
|
-
<dt id="
|
1517
|
+
<dt id="example_group_132" class="passed">at_most</dt>
|
1394
1518
|
<script type="text/javascript">moveProgressBar('91.4');</script>
|
1395
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds if the box is smaller than the one given with the at_most option</span><span class='duration'>0.
|
1396
|
-
<script type="text/javascript">moveProgressBar('91.
|
1397
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds if the box is equal than the one given with the at_most option</span><span class='duration'>0.
|
1519
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds if the box is smaller than the one given with the at_most option</span><span class='duration'>0.00008s</span></dd>
|
1520
|
+
<script type="text/javascript">moveProgressBar('91.7');</script>
|
1521
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds if the box is equal than the one given with the at_most option</span><span class='duration'>0.00009s</span></dd>
|
1398
1522
|
<script type="text/javascript">moveProgressBar('92.1');</script>
|
1399
|
-
<dd class="example passed"><span class="passed_spec_name">fails if the box is bigger than the one given with the at_most option</span><span class='duration'>0.
|
1523
|
+
<dd class="example passed"><span class="passed_spec_name">fails if the box is bigger than the one given with the at_most option</span><span class='duration'>0.00014s</span></dd>
|
1400
1524
|
</dl>
|
1401
1525
|
</div>
|
1402
|
-
<div id="
|
1526
|
+
<div id="div_group_133" class="example_group passed">
|
1403
1527
|
<dl style="margin-left: 15px;">
|
1404
|
-
<dt id="
|
1405
|
-
<script type="text/javascript">moveProgressBar('92.
|
1406
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when given a valid email</span><span class='duration'>0.
|
1407
|
-
<script type="text/javascript">moveProgressBar('92.
|
1408
|
-
<dd class="example passed"><span class="passed_spec_name">fails when not given a email</span><span class='duration'>0.
|
1528
|
+
<dt id="example_group_133" class="passed">email</dt>
|
1529
|
+
<script type="text/javascript">moveProgressBar('92.4');</script>
|
1530
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when given a valid email</span><span class='duration'>0.00008s</span></dd>
|
1531
|
+
<script type="text/javascript">moveProgressBar('92.7');</script>
|
1532
|
+
<dd class="example passed"><span class="passed_spec_name">fails when not given a email</span><span class='duration'>0.00013s</span></dd>
|
1409
1533
|
</dl>
|
1410
1534
|
</div>
|
1411
|
-
<div id="
|
1535
|
+
<div id="div_group_134" class="example_group passed">
|
1412
1536
|
<dl style="margin-left: 30px;">
|
1413
|
-
<dt id="
|
1537
|
+
<dt id="example_group_134" class="passed">options</dt>
|
1414
1538
|
</dl>
|
1415
1539
|
</div>
|
1416
|
-
<div id="
|
1540
|
+
<div id="div_group_135" class="example_group passed">
|
1417
1541
|
<dl style="margin-left: 45px;">
|
1418
|
-
<dt id="
|
1419
|
-
<script type="text/javascript">moveProgressBar('93.
|
1420
|
-
<dd class="example passed"><span class="passed_spec_name">correctly renames a key when the value is valid</span><span class='duration'>0.
|
1542
|
+
<dt id="example_group_135" class="passed">:rename</dt>
|
1543
|
+
<script type="text/javascript">moveProgressBar('93.0');</script>
|
1544
|
+
<dd class="example passed"><span class="passed_spec_name">correctly renames a key when the value is valid</span><span class='duration'>0.00008s</span></dd>
|
1545
|
+
<script type="text/javascript">moveProgressBar('93.3');</script>
|
1546
|
+
<dd class="example passed"><span class="passed_spec_name">correctly doesn't rename a key when the value is invalid</span><span class='duration'>0.00013s</span></dd>
|
1547
|
+
</dl>
|
1548
|
+
</div>
|
1549
|
+
<div id="div_group_136" class="example_group passed">
|
1550
|
+
<dl style="margin-left: 45px;">
|
1551
|
+
<dt id="example_group_136" class="passed">:dependency</dt>
|
1421
1552
|
<script type="text/javascript">moveProgressBar('93.6');</script>
|
1422
|
-
<dd class="example passed"><span class="passed_spec_name">
|
1553
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when a dependency is given as a key and respected</span><span class='duration'>0.00008s</span></dd>
|
1554
|
+
<script type="text/javascript">moveProgressBar('94.0');</script>
|
1555
|
+
<dd class="example passed"><span class="passed_spec_name">fails when a dependency is not respected</span><span class='duration'>0.00012s</span></dd>
|
1423
1556
|
</dl>
|
1424
1557
|
</div>
|
1425
|
-
<div id="
|
1558
|
+
<div id="div_group_137" class="example_group passed">
|
1426
1559
|
<dl style="margin-left: 45px;">
|
1427
|
-
<dt id="
|
1428
|
-
<script type="text/javascript">moveProgressBar('93.9');</script>
|
1429
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when a dependency is given as a key and respected</span><span class='duration'>0.00018s</span></dd>
|
1560
|
+
<dt id="example_group_137" class="passed">:dependencies</dt>
|
1430
1561
|
<script type="text/javascript">moveProgressBar('94.3');</script>
|
1431
|
-
<dd class="example passed"><span class="passed_spec_name">
|
1562
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when dependencies are given as an array and respected</span><span class='duration'>0.00007s</span></dd>
|
1563
|
+
<script type="text/javascript">moveProgressBar('94.6');</script>
|
1564
|
+
<dd class="example passed"><span class="passed_spec_name">fails when one of the dependencies is not respected</span><span class='duration'>0.00010s</span></dd>
|
1432
1565
|
</dl>
|
1433
1566
|
</div>
|
1434
|
-
<div id="
|
1567
|
+
<div id="div_group_138" class="example_group passed">
|
1435
1568
|
<dl style="margin-left: 45px;">
|
1436
|
-
<dt id="
|
1437
|
-
<script type="text/javascript">moveProgressBar('94.
|
1438
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when
|
1439
|
-
<script type="text/javascript">moveProgressBar('95.
|
1440
|
-
<dd class="example passed"><span class="passed_spec_name">
|
1569
|
+
<dt id="example_group_138" class="passed">:required</dt>
|
1570
|
+
<script type="text/javascript">moveProgressBar('94.9');</script>
|
1571
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when a not required key is not given, but filters nothing</span><span class='duration'>0.00013s</span></dd>
|
1572
|
+
<script type="text/javascript">moveProgressBar('95.2');</script>
|
1573
|
+
<dd class="example passed"><span class="passed_spec_name">suceeds when a key has a required option to false, and is not given, but filters nothing</span><span class='duration'>0.00012s</span></dd>
|
1574
|
+
<script type="text/javascript">moveProgressBar('95.5');</script>
|
1575
|
+
<dd class="example passed"><span class="passed_spec_name">fails when a required key is not given</span><span class='duration'>0.00011s</span></dd>
|
1441
1576
|
</dl>
|
1442
1577
|
</div>
|
1443
|
-
<div id="
|
1578
|
+
<div id="div_group_139" class="example_group passed">
|
1444
1579
|
<dl style="margin-left: 45px;">
|
1445
|
-
<dt id="
|
1446
|
-
<script type="text/javascript">moveProgressBar('95.
|
1447
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when
|
1448
|
-
<script type="text/javascript">moveProgressBar('
|
1449
|
-
<dd class="example passed"><span class="passed_spec_name">
|
1450
|
-
<script type="text/javascript">moveProgressBar('96.
|
1451
|
-
<dd class="example passed"><span class="passed_spec_name">fails
|
1580
|
+
<dt id="example_group_139" class="passed">:in</dt>
|
1581
|
+
<script type="text/javascript">moveProgressBar('95.8');</script>
|
1582
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when the value is effectively in the possible values</span><span class='duration'>0.00007s</span></dd>
|
1583
|
+
<script type="text/javascript">moveProgressBar('96.2');</script>
|
1584
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds if there are no values</span><span class='duration'>0.00010s</span></dd>
|
1585
|
+
<script type="text/javascript">moveProgressBar('96.5');</script>
|
1586
|
+
<dd class="example passed"><span class="passed_spec_name">fails if the value is not in the possible values</span><span class='duration'>0.00011s</span></dd>
|
1452
1587
|
</dl>
|
1453
1588
|
</div>
|
1454
|
-
<div id="
|
1589
|
+
<div id="div_group_140" class="example_group passed">
|
1455
1590
|
<dl style="margin-left: 45px;">
|
1456
|
-
<dt id="
|
1457
|
-
<script type="text/javascript">moveProgressBar('96.4');</script>
|
1458
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds when the value is effectively in the possible values</span><span class='duration'>0.00008s</span></dd>
|
1591
|
+
<dt id="example_group_140" class="passed">:equals</dt>
|
1459
1592
|
<script type="text/javascript">moveProgressBar('96.8');</script>
|
1460
|
-
<dd class="example passed"><span class="passed_spec_name">succeeds
|
1593
|
+
<dd class="example passed"><span class="passed_spec_name">succeeds when the value is equal to the given value</span><span class='duration'>0.00007s</span></dd>
|
1461
1594
|
<script type="text/javascript">moveProgressBar('97.1');</script>
|
1462
|
-
<dd class="example passed"><span class="passed_spec_name">fails if the value is not
|
1595
|
+
<dd class="example passed"><span class="passed_spec_name">fails if the value is not equal to the given value</span><span class='duration'>0.00011s</span></dd>
|
1463
1596
|
</dl>
|
1464
1597
|
</div>
|
1465
|
-
<div id="
|
1598
|
+
<div id="div_group_141" class="example_group passed">
|
1466
1599
|
<dl style="margin-left: 45px;">
|
1467
|
-
<dt id="
|
1468
|
-
<script type="text/javascript">moveProgressBar('97.
|
1469
|
-
<dd class="example passed"><span class="passed_spec_name">
|
1470
|
-
<script type="text/javascript">moveProgressBar('97.
|
1471
|
-
<dd class="example passed"><span class="passed_spec_name">fails
|
1600
|
+
<dt id="example_group_141" class="passed">:equals_key</dt>
|
1601
|
+
<script type="text/javascript">moveProgressBar('97.4');</script>
|
1602
|
+
<dd class="example passed"><span class="passed_spec_name">suceeds when the key is present and equals to the other key</span><span class='duration'>0.00007s</span></dd>
|
1603
|
+
<script type="text/javascript">moveProgressBar('97.7');</script>
|
1604
|
+
<dd class="example passed"><span class="passed_spec_name">fails when the key is present, but not equals to the other key</span><span class='duration'>0.00014s</span></dd>
|
1605
|
+
<script type="text/javascript">moveProgressBar('98.1');</script>
|
1606
|
+
<dd class="example passed"><span class="passed_spec_name">fails when the key to compare the validated key with is not in the hash</span><span class='duration'>0.00011s</span></dd>
|
1472
1607
|
</dl>
|
1473
1608
|
</div>
|
1474
|
-
<div id="
|
1609
|
+
<div id="div_group_142" class="example_group passed">
|
1475
1610
|
<dl style="margin-left: 45px;">
|
1476
|
-
<dt id="
|
1477
|
-
<script type="text/javascript">moveProgressBar('98.
|
1478
|
-
<dd class="example passed"><span class="passed_spec_name">etracts the data when given at true</span><span class='duration'>0.
|
1479
|
-
<script type="text/javascript">moveProgressBar('98.
|
1611
|
+
<dt id="example_group_142" class="passed">:extract</dt>
|
1612
|
+
<script type="text/javascript">moveProgressBar('98.4');</script>
|
1613
|
+
<dd class="example passed"><span class="passed_spec_name">etracts the data when given at true</span><span class='duration'>0.00007s</span></dd>
|
1614
|
+
<script type="text/javascript">moveProgressBar('98.7');</script>
|
1480
1615
|
<dd class="example passed"><span class="passed_spec_name">doesn't extract the data when given at false</span><span class='duration'>0.00007s</span></dd>
|
1481
1616
|
</dl>
|
1482
1617
|
</div>
|
1483
|
-
<div id="
|
1618
|
+
<div id="div_group_143" class="example_group passed">
|
1484
1619
|
<dl style="margin-left: 45px;">
|
1485
|
-
<dt id="
|
1486
|
-
<script type="text/javascript">moveProgressBar('
|
1487
|
-
<dd class="example passed"><span class="passed_spec_name">casts the data when given at true</span><span class='duration'>0.
|
1488
|
-
<script type="text/javascript">moveProgressBar('99.
|
1489
|
-
<dd class="example passed"><span class="passed_spec_name">doesn't cast the data when given at false</span><span class='duration'>0.
|
1620
|
+
<dt id="example_group_143" class="passed">:cast</dt>
|
1621
|
+
<script type="text/javascript">moveProgressBar('99.0');</script>
|
1622
|
+
<dd class="example passed"><span class="passed_spec_name">casts the data when given at true</span><span class='duration'>0.00007s</span></dd>
|
1623
|
+
<script type="text/javascript">moveProgressBar('99.3');</script>
|
1624
|
+
<dd class="example passed"><span class="passed_spec_name">doesn't cast the data when given at false</span><span class='duration'>0.00010s</span></dd>
|
1490
1625
|
</dl>
|
1491
1626
|
</div>
|
1492
|
-
<div id="
|
1627
|
+
<div id="div_group_144" class="example_group passed">
|
1493
1628
|
<dl style="margin-left: 0px;">
|
1494
|
-
<dt id="
|
1629
|
+
<dt id="example_group_144" class="passed">Kharon</dt>
|
1495
1630
|
<script type="text/javascript">moveProgressBar('99.6');</script>
|
1496
|
-
<dd class="example passed"><span class="passed_spec_name">Can not use exceptions</span><span class='duration'>0.
|
1631
|
+
<dd class="example passed"><span class="passed_spec_name">Can not use exceptions</span><span class='duration'>0.00059s</span></dd>
|
1497
1632
|
<script type="text/javascript">moveProgressBar('100.0');</script>
|
1498
|
-
<dd class="example passed"><span class="passed_spec_name">Can use exceptions</span><span class='duration'>0.
|
1633
|
+
<dd class="example passed"><span class="passed_spec_name">Can use exceptions</span><span class='duration'>0.00010s</span></dd>
|
1499
1634
|
</dl>
|
1500
1635
|
</div>
|
1501
|
-
<script type="text/javascript">document.getElementById('duration').innerHTML = "Finished in <strong>0.
|
1502
|
-
<script type="text/javascript">document.getElementById('totals').innerHTML = "
|
1636
|
+
<script type="text/javascript">document.getElementById('duration').innerHTML = "Finished in <strong>0.10867 seconds</strong>";</script>
|
1637
|
+
<script type="text/javascript">document.getElementById('totals').innerHTML = "317 examples, 0 failures";</script>
|
1503
1638
|
</div>
|
1504
1639
|
</div>
|
1505
1640
|
</body>
|