Skip to content
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
maxzod committed Nov 5, 2021
1 parent 6305f8a commit f2cb4c5
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 23 deletions.
1 change: 0 additions & 1 deletion lib/src/other/lists/contains_any.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import 'package:queen_validators/src/text_rule_class.dart';
class ContainsAny extends TextValidationRule {
final List<String> value;
bool? _trim;
bool? caseSensitive;
ContainsAny(this.value, [String? msg]) : super(msg);

Expand Down
2 changes: 2 additions & 0 deletions lib/src/rules/index.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ export 'text/is_empty.dart';
export 'text/is_not_empty.dart';
export 'text/starts_with.dart';
export 'text/ends_with.dart';
// * numbers
export 'numbers/is_double.dart';
2 changes: 1 addition & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ packages:
source: hosted
version: "0.12.11"
meta:
dependency: transitive
dependency: "direct main"
description:
name: meta
url: "https://pub.dartlang.org"
Expand Down
3 changes: 2 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: queen_validators
description: functions to make the validation processs easier for variables and forms with ZERO extra widgets TextFormFeild
description: queen support for validation in flutter , functions for variables validation , Rules for Forms with ZERO extra widgets
version: 1.0.0-beta
homepage: https://github.com/maxzod/queen_validators
repository: https://github.com/maxzod/queen_validators
Expand All @@ -8,6 +8,7 @@ environment:
sdk: ">=2.12.0 <3.0.0"
dependencies:
email_validator: ^2.0.1
meta: ^1.7.0

dev_dependencies:
lints: ^1.0.1
Expand Down
2 changes: 0 additions & 2 deletions test/q_validator_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import 'package:queen_validators/queen_validators.dart';
import 'package:test/expect.dart';
import 'package:test/scaffolding.dart';

class _FailureCalledException implements Exception {}

void main() {
group('qValidator function', () {
test('stops on first failure', () {
Expand Down
18 changes: 0 additions & 18 deletions test/rules/numbers/is_double.dart
Original file line number Diff line number Diff line change
@@ -1,25 +1,7 @@
import 'package:queen_validators/queen_validators.dart';
import 'package:queen_validators/src/rules/numbers/is_double.dart';
import 'package:test/test.dart';

void main() {
const validDoubles = [
'0.0',
'1.0',
'0.1',
0.0,
0.1,
1.0,
];
const notValidDoubles = [
'0',
'1',
'2',
0,
1,
2,
];

group('Rule', () {
test(
'it should return True when the text is double digit number',
Expand Down

0 comments on commit f2cb4c5

Please sign in to comment.