some testing material, not very good...
This commit is contained in:
parent
8982dadad1
commit
00ae547da2
2 changed files with 23 additions and 0 deletions
7
trunk/ripnews/news/tests/newsrc.news.wizeazz.nl
Normal file
7
trunk/ripnews/news/tests/newsrc.news.wizeazz.nl
Normal file
File diff suppressed because one or more lines are too long
16
trunk/ripnews/news/tests/newsrc_test.rb
Executable file
16
trunk/ripnews/news/tests/newsrc_test.rb
Executable file
|
|
@ -0,0 +1,16 @@
|
||||||
|
#!/usr/local/bin/ruby
|
||||||
|
|
||||||
|
require '../newsrc.rb'
|
||||||
|
|
||||||
|
def test1
|
||||||
|
print "Test 1\n"
|
||||||
|
@newsrc = News::Newsrc.new("newsrc.news.wizeazz.nl")
|
||||||
|
|
||||||
|
print @newsrc.get_articles("alt.binaries.sounds.mp3.gothic-industrial")
|
||||||
|
print "\n"
|
||||||
|
@newsrc.unmark_range("alt.binaries.sounds.mp3.gothic-industrial", 0, 2394540)
|
||||||
|
print @newsrc.get_articles("alt.binaries.sounds.mp3.gothic-industrial")
|
||||||
|
print "\n"
|
||||||
|
end
|
||||||
|
|
||||||
|
test1
|
||||||
Loading…
Add table
Add a link
Reference in a new issue