Git Product home page Git Product logo

akqa-test's Introduction

AKQA Test - Booking for boardroom

Work Hours: 3 hours in 27 Sep., 6 hours in 28 Sep.

Environment Requirement

Here aussme you have:

  • Mac OS X (system version above 10.9) or Linux environment
  • Installed PHP, version above 5.3.3

If not, install as following

  • Mac OS X with system version above 10.9 have PHP support out of box. Check it from your terminal:

      php -v
    
  • Linux, aussem you can use Ubuntu/Debian/Arch

      // for Ubuntu or Debian
      apt-get install php5-cli
      
      // for Arch
      pacman -S php
    

Project

Structure

/src/			// source code
/tests/			// unit testing related
/data.txt		// input source, the booking data
/Run.php		// main file

Run

  • go to root of this project folder

  • execute following in your terminal, will see result output directly

      php Run.php
    
  • you can change data from data.txt to retest

Unit Testing

  • use https://phpunit.de/ as unit testing framework

  • exceute in your terminal, will testing result output directly

      php phpunit.phar --bootstrap vendor/autoload.php tests/BookingTest.php 
    

Known issues

  1. date like 2/28, 2/29 and 2/30 not handle correctly yet
  2. hours for meeting have to be interger
  3. exception handler

akqa-test's People

Watchers

ericstone57 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.