[moriarty] r329 committed - Fixed the expected list items in SimpleGraphTest->test_get_list_values...

0 views
Skip to first unread message

mori...@googlecode.com

unread,
Jan 11, 2012, 7:00:07 AM1/11/12
to moriarty...@googlegroups.com
Revision: 329
Author: jhi...@gmail.com
Date: Wed Jan 11 03:59:48 2012
Log: Fixed the expected list items in
SimpleGraphTest->test_get_list_values().
http://code.google.com/p/moriarty/source/detail?r=329

Modified:
/trunk/tests/simplegraph.test.php

=======================================
--- /trunk/tests/simplegraph.test.php Mon Oct 31 09:24:47 2011
+++ /trunk/tests/simplegraph.test.php Wed Jan 11 03:59:48 2012
@@ -1105,11 +1105,14 @@


function test_get_list_values(){
- $g = new
SimpleGraph(file_get_contents(dirname(__FILE__).DIRECTORY_SEPARATOR.'documents'.DIRECTORY_SEPARATOR.'lists-seqs-collections.ttl'));
- $actual = $g->get_list_values(exampleNS.'#list');
- $expected = array(exampleNS.'#a', exampleNS.'#b', exampleNS.'#c');
- $this->assertEquals($expected, $actual, "list should be tranformed
into the array");
-
+ $g = new
SimpleGraph(file_get_contents(dirname(__FILE__).DIRECTORY_SEPARATOR.'documents'.DIRECTORY_SEPARATOR.'lists-seqs-collections.ttl'));
+ $actual = $g->get_list_values(exampleNS.'#list');
+ $expected = array(
+ array('value' => exampleNS.'#a', 'type' => 'uri'),
+ array('value' => exampleNS.'#b', 'type' => 'uri'),
+ array('value' => exampleNS.'#c', 'type' => 'uri'),
+ );
+ $this->assertEquals($expected, $actual, "list should be tranformed
into the array");
}

public function testGetSequenceValues()

Reply all
Reply to author
Forward
0 new messages