Browse Source

Added more strideAlign test.

Бранимир Караџић 7 years ago
parent
commit
2b16a44b4d
1 changed files with 7 additions and 0 deletions
  1. 7 0
      tests/uint32_test.cpp

+ 7 - 0
tests/uint32_test.cpp

@@ -19,6 +19,13 @@ TEST_CASE("StrideAlign")
 	{
 		REQUIRE(48 == bx::strideAlign16(ii+1, 12) );
 	}
+
+	uint32_t offset = 11;
+	offset = bx::strideAlign(offset, 32);
+	REQUIRE(offset == 32);
+
+	offset = bx::strideAlign(offset, 24);
+	REQUIRE(offset == 48);
 }
 
 TEST_CASE("uint32_cnt")