Index: tests/post.php
===================================================================
--- tests/post.php	(revision 1062)
+++ tests/post.php	(working copy)
@@ -520,4 +520,26 @@
 
 		$this->assertEquals( 'publish', $post->post_status );
 	}
+
+	function test_get_pages_include_exclude() {
+		$page_ids = array();
+		
+		foreach ( range( 1, 20 ) as $i )
+			$page_ids[] = $this->factory->post->create( array( 'post_type' => 'page' ) );
+		
+		$inc = array_slice( $page_ids, 0, 10 );
+		sort( $inc );
+		$exc = array_slice( $page_ids, 10 );
+		sort( $exc );
+		
+		$include = get_pages( array( 'include' => $inc ) );
+		$inc_result = wp_list_pluck( $include, 'ID' );
+		sort( $inc_result );
+		$this->assertEquals( $inc, $inc_result );
+		
+		$exclude = get_pages( array( 'exclude' => $exc ) );
+		$exc_result = wp_list_pluck( $exclude, 'ID' );
+		sort( $exc_result );
+		$this->assertEquals( $inc, $exc_result );
+	}
 }
