Merge pull request '添加rocksdb初始化代码' (#2) from rosksdb into main

Reviewed-on: #2
This commit is contained in:
LingZhaoHui 2023-09-16 16:36:00 +00:00
commit 10070138e0
3 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1 @@
package com.zeekling.cn;

View File

@ -0,0 +1,15 @@
package com.zeekling.cn.rocksdb;
import org.junit.Test;
import org.rocksdb.RocksDB;
public class RocksDbLoadTest {
@Test
public void rocksdbLoad() {
RocksDB.loadLibrary();
RocksDB.Version version = RocksDB.rocksdbVersion();
System.out.println(version);
}
}

View File

@ -0,0 +1,16 @@
package com.zeekling.cn.string;
import org.junit.Assert;
import org.junit.Test;
public class RegexTest {
@Test
public void testRegex() {
String regex = "test//";
String replaceAll = regex.replaceAll("[^a-zA-Z0-9\\-]", "_");
Assert.assertTrue("test__".equalsIgnoreCase(replaceAll));
System.out.println(replaceAll);
}
}