Browse Source

added test case

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@7591 8c9fc860-2736-0410-a75d-ab315db34111
felixf 7 years ago
parent
commit
a5b517cb53
1 changed files with 10 additions and 1 deletions
  1. 10 1
      source/Oberon.Compilation.Test

+ 10 - 1
source/Oberon.Compilation.Test

@@ -39469,4 +39469,13 @@ positive: tests of MIN and MAX
 	END TestMinMax;
 	END TestMinMax;
 
 
 	BEGIN
 	BEGIN
-	END Test.
+	END Test.
+
+negative: conversion float to unsigned data type
+	MODULE Test;
+	VAR real: REAL;
+	VAR unsigned8: UNSIGNED8;
+	BEGIN
+	    unsigned8 := UNSIGNED8(real);
+	END Test.
+