Index: tests/query/results.php
===================================================================
--- tests/query/results.php	(revision 1219)
+++ tests/query/results.php	(working copy)
@@ -369,4 +369,51 @@
 			'child-two',
 		), wp_list_pluck( $posts, 'post_title' ) );
 	}
+
+	/**
+	 * @ticket 10935
+	 */
+	function test_query_is_date() {
+		$this->q->query( array(
+			'year' => '2007',
+			'monthnum' => '01',
+			'day' => '01',
+		) );
+
+		$this->assertTrue( $this->q->is_date );
+		$this->assertTrue( $this->q->is_day );
+		$this->assertFalse( $this->q->is_month );
+		$this->assertFalse( $this->q->is_year );
+
+		$this->q->query( array(
+			'year' => '2007',
+			'monthnum' => '01',
+		) );
+
+		$this->assertTrue( $this->q->is_date );
+		$this->assertFalse( $this->q->is_day );
+		$this->assertTrue( $this->q->is_month );
+		$this->assertFalse( $this->q->is_year );
+
+		$this->q->query( array(
+			'year' => '2007',
+		) );
+
+		$this->assertTrue( $this->q->is_date );
+		$this->assertFalse( $this->q->is_day );
+		$this->assertFalse( $this->q->is_month );
+		$this->assertTrue( $this->q->is_year );
+
+		$this->q->query( array(
+			'year' => '2007',
+			'monthnum' => '01',
+			'day' => '50',
+		) );
+
+		$this->assertTrue( $this->q->is_404 );
+		$this->assertFalse( $this->q->is_date );
+		$this->assertFalse( $this->q->is_day );
+		$this->assertFalse( $this->q->is_month );
+		$this->assertFalse( $this->q->is_year );
+	}
 }
