Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
tests/test.h@17:969aa15f783d, 2017-03-30 (annotated)
- Committer:
 - GaiSensei
 - Date:
 - Thu Mar 30 17:31:40 2017 +0000
 - Revision:
 - 17:969aa15f783d
 
Fixed bogues
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| GaiSensei | 17:969aa15f783d | 1 | ///////////////////////////////////////////////////////////// | 
| GaiSensei | 17:969aa15f783d | 2 | // APP 3 // | 
| GaiSensei | 17:969aa15f783d | 3 | // // | 
| GaiSensei | 17:969aa15f783d | 4 | // Université de Sherbrooke // | 
| GaiSensei | 17:969aa15f783d | 5 | // Génie informatique // | 
| GaiSensei | 17:969aa15f783d | 6 | // Session 5, Hiver 2017 // | 
| GaiSensei | 17:969aa15f783d | 7 | // // | 
| GaiSensei | 17:969aa15f783d | 8 | // Date: 14 février 2017 // | 
| GaiSensei | 17:969aa15f783d | 9 | // // | 
| GaiSensei | 17:969aa15f783d | 10 | // Auteurs: Maxime Dupuis, dupm2216 // | 
| GaiSensei | 17:969aa15f783d | 11 | // Bruno Allaire-Lemay, allb2701 // | 
| GaiSensei | 17:969aa15f783d | 12 | ///////////////////////////////////////////////////////////// | 
| GaiSensei | 17:969aa15f783d | 13 | |
| GaiSensei | 17:969aa15f783d | 14 | #ifndef TEST_HPP | 
| GaiSensei | 17:969aa15f783d | 15 | #define TEST_HPP | 
| GaiSensei | 17:969aa15f783d | 16 | |
| GaiSensei | 17:969aa15f783d | 17 | #include <vector> | 
| GaiSensei | 17:969aa15f783d | 18 | #include "xbee.h" | 
| GaiSensei | 17:969aa15f783d | 19 | |
| GaiSensei | 17:969aa15f783d | 20 | bool vectors_are_equal(const vector<char> v1, const vector<char> v2); | 
| GaiSensei | 17:969aa15f783d | 21 | |
| GaiSensei | 17:969aa15f783d | 22 | void run_all_tests(); | 
| GaiSensei | 17:969aa15f783d | 23 | void vectors_are_equal_test(); | 
| GaiSensei | 17:969aa15f783d | 24 | vector<char> construct_vector(const char* content, int length); | 
| GaiSensei | 17:969aa15f783d | 25 | void generate_transmit_request_test(); | 
| GaiSensei | 17:969aa15f783d | 26 | void generate_led_high_command_test(); | 
| GaiSensei | 17:969aa15f783d | 27 | void generate_led_low_command_test(); | 
| GaiSensei | 17:969aa15f783d | 28 | void parse_receive_packet_test(); | 
| GaiSensei | 17:969aa15f783d | 29 | void parse_frame_parses_receive_packet_test(); | 
| GaiSensei | 17:969aa15f783d | 30 | void parse_frame_parses_transmit_status_test(); | 
| GaiSensei | 17:969aa15f783d | 31 | void parse_frame_parses_at_command_response_test(); | 
| GaiSensei | 17:969aa15f783d | 32 | void parse_frame_parses_remote_command_response_test(); | 
| GaiSensei | 17:969aa15f783d | 33 | void handle_frame_adds_parsed_frame_to_mailbox_test(); | 
| GaiSensei | 17:969aa15f783d | 34 | |
| GaiSensei | 17:969aa15f783d | 35 | void test_create_vector_by_copy_test(); | 
| GaiSensei | 17:969aa15f783d | 36 | |
| GaiSensei | 17:969aa15f783d | 37 | void string_to_data_test(); | 
| GaiSensei | 17:969aa15f783d | 38 | void hexa_char_to_dec_test(); | 
| GaiSensei | 17:969aa15f783d | 39 | |
| GaiSensei | 17:969aa15f783d | 40 | #endif |