插件开发工具库,推荐依赖该工具库。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
443 B

package com.fanruan.api.util;
import org.junit.Assert;
import org.junit.Test;
import static org.junit.Assert.*;
public class StableKitTest {
@Test
public void canBeFormula() {
String s1 = "=1";
String s2 = "=a+b+";
String s3 = "ppp";
Assert.assertTrue(StableKit.canBeFormula(s1));
Assert.assertTrue(StableKit.canBeFormula(s2));
Assert.assertFalse(StableKit.canBeFormula(s3));
}
}