⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 negativenumbertest.java

📁 SRI international 发布的OAA框架软件
💻 JAVA
字号:
/* 
 * Local Variables:
 * c-basic-offset:2
 * tab-width:2
 * indent-tabs-mode:nil
 * End:
 */
/*
 * Created on Jun 5, 2003
 *
 */
package com.sri.oaa2.test.icl;

import com.sri.oaa2.icl.IclTerm;

import junit.framework.TestCase;

/**
 * @author agno
 *
 */
public class NegativeNumberTest extends TestCase 
{

  /**
   * Constructor for OaaNegativeNumberTest.
   * @param arg0
   */
  public NegativeNumberTest(String arg0) 
  {
    super(arg0);
  }

  public void testNegativeNumberCreation()
  {
    try {
      IclTerm t0 = IclTerm.fromString("-5");
      IclTerm t1 = IclTerm.fromString("-5.0");
      IclTerm t2 = IclTerm.fromString("5.0");
      
      TestCase.assertTrue(!(t0 == null));
      TestCase.assertTrue(!(t1 == null));
      TestCase.assertTrue(!(t2 == null));      
    }
    catch(Exception e) {
      e.printStackTrace();
      TestCase.assertTrue(false);
    }
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -