Compare commits
6 Commits
feature/fi
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| a3ad37af81 | |||
|
|
d2c20b79a4 | ||
| 6f905b978a | |||
| 64884ac732 | |||
| fccde85e17 | |||
| 06796e0377 |
@ -3,6 +3,10 @@ class InvitationStatus {
|
|||||||
static const String pending = 'PENDING';
|
static const String pending = 'PENDING';
|
||||||
static const String rejected = 'REJECTED';
|
static const String rejected = 'REJECTED';
|
||||||
static const String accepted = 'ACCEPTED';
|
static const String accepted = 'ACCEPTED';
|
||||||
|
static const String completed = 'COMPLETED';
|
||||||
|
static const String failed = 'FAILED';
|
||||||
|
static const String timeout = 'TIMEOUT';
|
||||||
|
static const String expired = 'EXPIRED';
|
||||||
}
|
}
|
||||||
|
|
||||||
class CollectionNames {
|
class CollectionNames {
|
||||||
@ -14,5 +18,17 @@ class CollectionNames {
|
|||||||
static const String configurations = 'configurations';
|
static const String configurations = 'configurations';
|
||||||
static const String memberships = 'memberships';
|
static const String memberships = 'memberships';
|
||||||
static const String members = 'members';
|
static const String members = 'members';
|
||||||
|
static const String membershipPayments = 'membership_payments';
|
||||||
static const String clientProfiles = 'client_profiles';
|
static const String clientProfiles = 'client_profiles';
|
||||||
|
static const String annualHolidays = 'annual_holidays';
|
||||||
|
static const String commonHolidays = 'common_holidays';
|
||||||
|
static const String personalTrainerAssignments =
|
||||||
|
'personal_trainer_assignments';
|
||||||
|
static const String trainerAcceptedGyms = 'trainer_accepted_gyms';
|
||||||
|
static const String dayPassEntries = 'day_pass_entries';
|
||||||
|
static const String clientInvitations = 'client_invitations';
|
||||||
|
static const String notifications = 'notifications';
|
||||||
|
static const String daypassBookings = 'day_pass_bookings';
|
||||||
|
static const String paymentOrders = 'payment_orders';
|
||||||
|
static const String membershipConfirmations = 'membership_confirmations';
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,3 @@
|
|||||||
import 'dart:math';
|
|
||||||
|
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
import 'package:flutter_test/flutter_test.dart';
|
||||||
import 'package:fitlien_common/utility.dart';
|
import 'package:fitlien_common/utility.dart';
|
||||||
|
|
||||||
@ -88,66 +86,4 @@ void main() {
|
|||||||
expect(deltas[1].wordDeltas[1].old!.text, "ef");
|
expect(deltas[1].wordDeltas[1].old!.text, "ef");
|
||||||
expect(deltas[1].wordDeltas[1].modified, null);
|
expect(deltas[1].wordDeltas[1].modified, null);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('Comparison test 6', () {
|
|
||||||
var text1 = "ab bc cd ef";
|
|
||||||
var text2 = "ab bd cd ef";
|
|
||||||
var deltas = Utility.compare(text1, text2);
|
|
||||||
expect(deltas.length, 1);
|
|
||||||
expect(deltas[0].wordDeltas.length, 1);
|
|
||||||
expect(deltas[0].wordDeltas[0].old!.text, "bc");
|
|
||||||
expect(deltas[0].wordDeltas[0].modified!.text, "bd");
|
|
||||||
});
|
|
||||||
|
|
||||||
test('Comparison test 7', () {
|
|
||||||
var text1 = "abc def ghi";
|
|
||||||
var text2 = "zbc dkf gha";
|
|
||||||
var deltas = Utility.compare(text1, text2);
|
|
||||||
expect(deltas.length, 1);
|
|
||||||
expect(deltas[0].wordDeltas.length, 3);
|
|
||||||
expect(deltas[0].wordDeltas[0].old!.text, "abc");
|
|
||||||
expect(deltas[0].wordDeltas[0].modified!.text, "zbc");
|
|
||||||
expect(deltas[0].wordDeltas[1].old!.text, "def");
|
|
||||||
expect(deltas[0].wordDeltas[1].modified!.text, "dkf");
|
|
||||||
expect(deltas[0].wordDeltas[2].old!.text, "def");
|
|
||||||
expect(deltas[0].wordDeltas[2].modified!.text, "gha");
|
|
||||||
});
|
|
||||||
|
|
||||||
// test('Comparison test 8', () {
|
|
||||||
// var text1 = "ab bc cd ef";
|
|
||||||
// var text2 = "ab bd cd ef bc";
|
|
||||||
// var deltas = Utility.compare(text1, text2);
|
|
||||||
// expect(deltas.length, 2);
|
|
||||||
// expect(deltas[0].wordDeltas.length, 3);
|
|
||||||
// expect(deltas[0].wordDeltas[0].old!.text, "bc");
|
|
||||||
// expect(deltas[0].wordDeltas[0].modified!.text, "bd");
|
|
||||||
// expect(deltas[0].wordDeltas[1].old!.text, "bc");
|
|
||||||
// expect(deltas[0].wordDeltas[1].modified!.text, "cd");
|
|
||||||
// expect(deltas[0].wordDeltas[2].old!.text, "bc");
|
|
||||||
// expect(deltas[0].wordDeltas[2].modified!.text, "ef");
|
|
||||||
// expect(deltas[1].wordDeltas.length, 2);
|
|
||||||
// expect(deltas[1].wordDeltas[0].old!.text, "cd");
|
|
||||||
// expect(deltas[1].wordDeltas[0].modified!.text, null);
|
|
||||||
// expect(deltas[1].wordDeltas[1].old!.text, "ef");
|
|
||||||
// expect(deltas[1].wordDeltas[1].modified!.text, null);
|
|
||||||
// });
|
|
||||||
|
|
||||||
test('Comparison test 9', () {
|
|
||||||
var text1 = "ab bc cd ef";
|
|
||||||
var text2 = "ab bd ef bc cd";
|
|
||||||
var deltas = Utility.compare(text1, text2);
|
|
||||||
expect(deltas.length, 2);
|
|
||||||
expect(deltas[0].wordDeltas.length, 3);
|
|
||||||
expect(deltas[0].wordDeltas[0].old!.text, "bc");
|
|
||||||
expect(deltas[0].wordDeltas[0].modified!.text, "bd");
|
|
||||||
expect(deltas[0].wordDeltas[1].old!.text, "cd");
|
|
||||||
expect(deltas[0].wordDeltas[1].modified!.text, "ef");
|
|
||||||
expect(deltas[0].wordDeltas[2].old!.text, "cd");
|
|
||||||
expect(deltas[0].wordDeltas[2].modified!.text, "bc");
|
|
||||||
expect(deltas[1].wordDeltas.length, 2);
|
|
||||||
expect(deltas[1].wordDeltas[0].old!.text, "cd");
|
|
||||||
expect(deltas[1].wordDeltas[0].modified!.text, null);
|
|
||||||
expect(deltas[1].wordDeltas[1].old!.text, "ef");
|
|
||||||
expect(deltas[1].wordDeltas[1].modified!.text, null);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user