[GiNaC-devel] [PATCH 1/3] [trivia] Fix a typo in the GCD testcase.

Alexei Sheplyakov alexei.sheplyakov at gmail.com
Sun May 22 14:15:07 CEST 2011


---
 check/bugme_chinrem_gcd.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/check/bugme_chinrem_gcd.cpp b/check/bugme_chinrem_gcd.cpp
index 6a3f399..2a1bf29 100644
--- a/check/bugme_chinrem_gcd.cpp
+++ b/check/bugme_chinrem_gcd.cpp
@@ -57,8 +57,8 @@ static void check_extract_integer_content()
 static void integer_coeff_braindamage()
 {
 	parser readme;
-	ex A = readme("3*x2 + 1");
-	ex B = readme("9*x2 + 1");
+	ex A = readme("3*x^2 + 1");
+	ex B = readme("9*x^2 + 1");
 	ex g = chinrem_gcd(A, B);
 	if (!g.is_equal(ex(1))) {
 		std::cerr << "expected 1, got " << g << std::endl;
-- 
1.7.2.5




More information about the GiNaC-devel mailing list