1import { TrainingSession } from './createTrainingSession.js'; 2 3/******************** 4 * 5 * Create training sessions data 6 * 7 *********************/ 8 9export const morningRun = new TrainingSession({ 10 athlete: 'cath', 11 date: new Date('11, 25, 2020'), 12 duration: 0.5, 13 workout: 'run', 14 distance: 2000, 15 effortRating: 2, 16}); 17 18export const afternoonSwim = new TrainingSession({ 19 athlete: 'cath', 20 date: new Date('11, 28, 2020'), 21 duration: 0.5, 22 workout: 'swim', 23 distance: 1500, 24 effortRating: 3, 25}); 26 27export const nightSwim = new TrainingSession({ 28 athlete: 'cath', 29 date: new Date('10, 28, 2020'), 30 duration: 0.8, 31 workout: 'swim', 32 distance: 2233, 33 effortRating: 5, 34}); 35 36export const afternoonCycle = new TrainingSession({ 37 athlete: 'cath', 38 date: new Date('11, 01, 2020'), 39 duration: 0.5, 40 workout: 'cycle', 41 distance: 6500, 42 effortRating: 3, 43}); 44 45// Test cases for bad data entry 46export const testBadData = new TrainingSession({ 47 athlete: 'cath', // checked using null and number 48 date: new Date('11, 01, 2020'), // checked using null and string 49 duration: 0.5, // checked using null and string 50 workout: 'run', // checked using kayak, null and number 51 distance: 6500, // checked using null and string 52 effortRating: 3, // checked using null and string 53}); 54 55export const eveningRun = new TrainingSession({ 56 athlete: 'cath', 57 date: new Date('12, 7, 2020'), 58 duration: 1, 59 workout: 'run', 60 distance: 5500, 61 effortRating: 3, 62}); 63 64export const diffUser = new TrainingSession({ 65 athlete: 'ed', 66 date: new Date('12, 7, 2020'), 67 duration: 1, 68 workout: 'run', 69 distance: 5500, 70 effortRating: 3, 71});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.