@@ -22,12 +22,12 @@ main() {
22
22
23
23
test ('looks normal' , () => expectNoValidationError (name));
24
24
25
- test ('has a badly-named library in lib/src ' , () async {
25
+ test ('has dots in potential library names ' , () async {
26
26
await d.dir (appPath, [
27
27
d.libPubspec ("test_pkg" , "1.0.0" ),
28
28
d.dir ("lib" , [
29
29
d.file ("test_pkg.dart" , "int i = 1;" ),
30
- d.dir ( "src" , [d. file ("8ball. dart" , "int j = 2;" )] )
30
+ d.file ("test_pkg.g. dart" , "int j = 2;" )
31
31
])
32
32
]).create ();
33
33
expectNoValidationError (name);
@@ -50,38 +50,6 @@ main() {
50
50
expectValidationWarning (name);
51
51
});
52
52
53
- test ('has a library name with an invalid character' , () async {
54
- await d.dir (appPath, [
55
- d.libPubspec ("test_pkg" , "1.0.0" ),
56
- d.dir ("lib" , [d.file ("test-pkg.dart" , "int i = 0;" )])
57
- ]).create ();
58
- expectValidationWarning (name);
59
- });
60
-
61
- test ('has a library name that begins with a number' , () async {
62
- await d.dir (appPath, [
63
- d.libPubspec ("test_pkg" , "1.0.0" ),
64
- d.dir ("lib" , [d.file ("8ball.dart" , "int i = 0;" )])
65
- ]).create ();
66
- expectValidationWarning (name);
67
- });
68
-
69
- test ('has a library name that contains upper-case letters' , () async {
70
- await d.dir (appPath, [
71
- d.libPubspec ("test_pkg" , "1.0.0" ),
72
- d.dir ("lib" , [d.file ("TestPkg.dart" , "int i = 0;" )])
73
- ]).create ();
74
- expectValidationWarning (name);
75
- });
76
-
77
- test ('has a library name that is a Dart reserved word' , () async {
78
- await d.dir (appPath, [
79
- d.libPubspec ("test_pkg" , "1.0.0" ),
80
- d.dir ("lib" , [d.file ("for.dart" , "int i = 0;" )])
81
- ]).create ();
82
- expectValidationWarning (name);
83
- });
84
-
85
53
test ('has a single library named differently than the package' , () async {
86
54
deleteEntry (path.join (d.sandbox, appPath, "lib" , "test_pkg.dart" ));
87
55
await d.dir (appPath, [
0 commit comments