浏览代码

added test case

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@7591 8c9fc860-2736-0410-a75d-ab315db34111
felixf 7 年之前
父节点
当前提交
a5b517cb53
共有 1 个文件被更改,包括 10 次插入1 次删除
  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;
 
 	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.
+