Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 80 lines (60 sloc) 2.102 kb
ad7698c @delano Well, Deej, I know I say a lot of things about Kimmy being an annoying, ...
authored
1
2 library :gibbler, File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
0b393bc @delano It's Gazette
authored
3 group "Gibbler Gazette"
ad7698c @delano Well, Deej, I know I say a lot of things about Kimmy being an annoying, ...
authored
4
5 tryouts "Basic syntax with SHA1" do
6
d5d8f17 @delano Updated tryouts syntax for Tryouts 0.7.2
authored
7 dream :respond_to?, :to_gibble
8 dream :to_gibble, '5620e4a8b10ec6830fece61d33f5d3e9a349b4c2'
0a74b91 @delano I'm going to start being more nice to Kimmy.
authored
9 drill "Object", Object
10
d5d8f17 @delano Updated tryouts syntax for Tryouts 0.7.2
authored
11 dream :respond_to?, :to_gibble
12 dream :to_gibble, '25ac269ae3ef18cdb4143ad02ca315afb5026de9'
0a74b91 @delano I'm going to start being more nice to Kimmy.
authored
13 drill "Class", Class
ad7698c @delano Well, Deej, I know I say a lot of things about Kimmy being an annoying, ...
authored
14
d5d8f17 @delano Updated tryouts syntax for Tryouts 0.7.2
authored
15 dream :respond_to?, :to_gibble
16 dream :to_gibble, 'c93bfdb675f9b0aae27b8c6660690f88bb6603b5'
0a74b91 @delano I'm going to start being more nice to Kimmy.
authored
17 drill "Hash", Hash
18
d5d8f17 @delano Updated tryouts syntax for Tryouts 0.7.2
authored
19 dream :respond_to?, :to_gibble
20 dream :to_gibble, '83c4994bb01eefc06aa267aa99aa12b55696616e'
b205d37 @delano More Tryouts cleanup
authored
21 drill "Array", Array
22
d5d8f17 @delano Updated tryouts syntax for Tryouts 0.7.2
authored
23 dream :respond_to?, :to_gibble
24 dream :to_gibble, '2e124aa78e365a6222bfa0f1c725181ab5d33440'
0a74b91 @delano I'm going to start being more nice to Kimmy.
authored
25 drill "Empty Hash instance", Hash.new
26
d5d8f17 @delano Updated tryouts syntax for Tryouts 0.7.2
authored
27 dream :to_gibble, "6a0eace5245ec00306c2a15f652a9d520d49b657"
b205d37 @delano More Tryouts cleanup
authored
28 drill "Populated Hash instance" do
29 {
30 :a => [1,2,3, [4,5,6]],
31 :b => { :c => Class }
32 }
33 end
ad7698c @delano Well, Deej, I know I say a lot of things about Kimmy being an annoying, ...
authored
34
d5d8f17 @delano Updated tryouts syntax for Tryouts 0.7.2
authored
35 dream :respond_to?, :to_gibble
36 dream :to_gibble, '2e124aa78e365a6222bfa0f1c725181ab5d33440'
0a74b91 @delano I'm going to start being more nice to Kimmy.
authored
37 drill "Empty Array instance", Array.new
38
d5d8f17 @delano Updated tryouts syntax for Tryouts 0.7.2
authored
39 dream :to_gibble, "213c82119d256e29d0e786cfcc5400c3bb043517"
0a74b91 @delano I'm going to start being more nice to Kimmy.
authored
40 drill "Populated Array instance" do
9d119e6 @delano Tryouts cleanup
authored
41 stash :poop, 11111111
0a74b91 @delano I'm going to start being more nice to Kimmy.
authored
42 [1, 222222, :runtime, [2, "three", [Object]]]
43 end
44
b205d37 @delano More Tryouts cleanup
authored
45 drill "Knows when an Hash has changed" do
77f82ce @delano Added RDocs and a few tryouts
authored
46 a = {}
47 stash :clean, a.clone
48 a.to_gibble
49 a[:magic] = []
50 stash :changed, a.clone
51 a.gibbled?
52 end
ad7698c @delano Well, Deej, I know I say a lot of things about Kimmy being an annoying, ...
authored
53
54 end
55
56 tryouts "Basic syntax with SHA256" do
57 setup do
58 Object.gibbler_digest_type = Digest::SHA256
59 end
60
d5d8f17 @delano Updated tryouts syntax for Tryouts 0.7.2
authored
61 dream :respond_to?, :to_gibble
62 dream :to_gibble, '5dbdeb534f4c2fff44fc695453ae2da221cdc38c9e3329b5691aa6542669148c'
0a74b91 @delano I'm going to start being more nice to Kimmy.
authored
63 drill "Object", Object
ad7698c @delano Well, Deej, I know I say a lot of things about Kimmy being an annoying, ...
authored
64
d5d8f17 @delano Updated tryouts syntax for Tryouts 0.7.2
authored
65 dream :respond_to?, :to_gibble
66 dream :to_gibble, '995b827e46b9169bb6f8f29457f61fca24f88593c99d9660f36ec66e528b32f9'
0a74b91 @delano I'm going to start being more nice to Kimmy.
authored
67 drill "Hash", Hash
9d119e6 @delano Tryouts cleanup
authored
68 end
69
70 tryouts "Benchmarks", :benchmark do
71
72 drill "Setup variables" do
73 @@array = (1..100000).map { rand }
74 end
ad7698c @delano Well, Deej, I know I say a lot of things about Kimmy being an annoying, ...
authored
75
d5d8f17 @delano Updated tryouts syntax for Tryouts 0.7.2
authored
76 drill("array sort!", :mean, 4, 5) { @@array.dup.sort! }
77 drill("array sort", :mean, 3.0, 5) { @@array.dup.sort }
9d119e6 @delano Tryouts cleanup
authored
78
79 end
Something went wrong with that request. Please try again.