添加单元测试模块,增加电话号码是否是数字的检测。

This commit is contained in:
ZhanGSKen
2025-02-25 20:19:54 +08:00
parent 90e66889a9
commit 396df6713c
12 changed files with 189 additions and 26 deletions

View File

@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ScrollView
android:layout_width="match_parent"
android:layout_height="500dp">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="right">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Test Main"
android:onClick="onMain"
android:textAllCaps="false"/>
</LinearLayout>
</LinearLayout>
</ScrollView>
<cc.winboll.studio.shared.log.LogView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1.0"
android:id="@+id/logview"/>
</LinearLayout>

View File

@@ -19,6 +19,9 @@
android:title="@string/text_smsrule"/>
<item android:title="@string/app_developoptions">
<menu>
<item
android:id="@+id/app_unittest"
android:title="@string/app_unittest"/>
<item
android:id="@+id/app_crashtest"
android:title="@string/app_crashtest"/>

View File

@@ -9,6 +9,7 @@
<string name="app_goldentheme">辉煌历程主题</string>
<string name="app_developoptions">开发选项</string>
<string name="app_default_app_settings">默认应用设置</string>
<string name="app_unittest">单元测试</string>
<string name="app_crashtest">应用异常崩溃处理测试</string>
<string name="app_about">关于应用</string>
<string name="app_smsrecycle">短信回收站</string>

View File

@@ -9,6 +9,7 @@
<string name="app_goldentheme">Golden Theme</string>
<string name="app_developoptions">Develop Options</string>
<string name="app_default_app_settings">Default App Settings</string>
<string name="app_unittest">Unit Test</string>
<string name="app_crashtest">Crash Test</string>
<string name="app_about">About APP</string>
<string name="app_smsrecycle">SMS Recycle</string>