Compare commits

..

6 Commits

Author SHA1 Message Date
a3ad37af81 Added new Constant expired 2025-08-07 20:50:54 +05:30
AllenTJ7
d2c20b79a4 Update fitlien_common.dart 2025-06-02 16:21:04 +05:30
6f905b978a Changed day pass bookings name 2025-04-13 21:22:32 +05:30
64884ac732 one more collection name added 2025-04-13 13:36:19 +05:30
fccde85e17 Added new collection names 2025-04-13 13:07:42 +05:30
06796e0377 colllection name added 2025-04-13 13:06:45 +05:30
2 changed files with 16 additions and 64 deletions

View File

@ -3,6 +3,10 @@ class InvitationStatus {
static const String pending = 'PENDING';
static const String rejected = 'REJECTED';
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 {
@ -14,5 +18,17 @@ class CollectionNames {
static const String configurations = 'configurations';
static const String memberships = 'memberships';
static const String members = 'members';
static const String membershipPayments = 'membership_payments';
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';
}

View File

@ -1,5 +1,3 @@
import 'dart:math';
import 'package:flutter_test/flutter_test.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].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);
});
}