dnote 1.7.1 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/test/notes_case.rb DELETED
@@ -1,64 +0,0 @@
1
- require 'lemon'
2
- require 'ae'
3
- require 'dnote/notes'
4
-
5
- testcase DNote::Notes do
6
-
7
- concern "Coverage of DNote::Notes class."
8
-
9
- method :labels do
10
- test 'returns the list of labels' do
11
- notes = DNote::Notes.new([], :labels=>['TODO'])
12
- notes.labels.assert == ['TODO'] #DNote::Notes::DEFAULT_LABELS
13
- end
14
- end
15
-
16
- method :files do
17
- test 'returns the files attribute' do
18
- notes = DNote::Notes.new(["example1.rb"])
19
- notes.assert.files == ["example1.rb"]
20
- notes = DNote::Notes.new([], :paths => ["example2.rb"])
21
- notes.assert.files == ["example2.rb"]
22
- end
23
- end
24
-
25
- method :files do
26
- test 'changes the paths attribute' do
27
- notes = DNote::Notes.new([])
28
- notes.files = ["example1.rb"]
29
- notes.assert.files == ["example1.rb"]
30
- end
31
- end
32
-
33
- method :match_general do
34
- test 'works' do
35
- notes = DNote::Notes.new([])
36
- line, lineno, file = "# TODO: Do something or another!", 1, "foo.rb"
37
- rec = notes.match_general(line, lineno, file)
38
- rec.to_h.assert == {'label'=>"TODO",'file'=>file,'line'=>lineno,'text'=>"Do something or another!"}
39
- end
40
- end
41
-
42
- method :match_special do
43
- test 'works' do
44
- notes = DNote::Notes.new([], :labels=>['TODO'])
45
- line, lineno, file = "# TODO: Do something or another!", 1, "foo.rb"
46
- rec = notes.match_special(line, lineno, file)
47
- rec.to_h.assert == {'label'=>"TODO",'file'=>file,'line'=>lineno,'text'=>"Do something or another!"}
48
- end
49
- end
50
-
51
- method :counts do
52
- test{ raise NotImplementedError }
53
- end
54
-
55
- method :notes do
56
- test{ raise NotImplementedError }
57
- end
58
-
59
- method :parse do
60
- test{ raise NotImplementedError }
61
- end
62
-
63
- end
64
-
data/try/sample.bas DELETED
@@ -1,7 +0,0 @@
1
- ' Here is a sample of Javascript.
2
- '
3
- ' TODO: This is what we will do.
4
- '
5
- ' FIXME: And this is something urgant
6
-
7
-
data/try/sample.js DELETED
@@ -1,11 +0,0 @@
1
- // Here is a sample of Javascript.
2
- //
3
- // TODO: This is what we will do.
4
- //
5
- // FIXME: And this is something urgant
6
-
7
- function sample() [
8
- var n = 100;
9
- return n;
10
- }
11
-
data/try/sample.rb DELETED
@@ -1,11 +0,0 @@
1
- # Here is a sample of Javascript.
2
- #
3
- # TODO: This is what we will do.
4
- #
5
- # FIXME: And this is something urgant
6
-
7
- def sample
8
- n = 100
9
- n
10
- end
11
-