Refactor icon update script (#122392)

* x

* docs
This commit is contained in:
Pierre-Louis
2023-03-13 22:17:35 +01:00
committed by GitHub
parent 376d8baabc
commit d8f7c3d362
2 changed files with 47 additions and 42 deletions

View File

@@ -17,6 +17,9 @@ Map<String, String> codepointsC = <String, String>{
'airplane': '111',
'train': '444',
};
Map<String, String> codepointsUnderscore = <String, String>{
'airplane__123': '111',
};
void main() {
group('safety checks', () {
@@ -38,7 +41,7 @@ void main() {
});
test('no double underscores', () {
expect(Icon.generateFlutterId('abc__123'), 'abc_123');
expect(Icon(codepointsUnderscore.entries.first), 'abc_123');
});
test('usage string is correct', () {