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.
Dependents: mbed-TFT-example-NCS36510 mbed-Accelerometer-example-NCS36510 mbed-Accelerometer-example-NCS36510
test_data.py
00001 # This is similar to test1, but this time B2 also inherits from B1, which allows it to override its config data. 00002 # B2 also overrides base1_2, like D1. 00003 # The order of inheritace in F is also reversed ([D1, B2] instead of [B2, D1]) 00004 # Since the last override of base1_2 in inheritance order is in B2, base1_2 must now 00005 # have the value that was overriden in B2, not in D1. 00006 # This test also shows that multiple inheritance works for a simple diamond shaped inheritance pattern 00007 00008 expected_results = { 00009 "f": { 00010 "desc": "test multiple target inheritance (diamond shape)", 00011 "target.base1_1": "v_base1_1_f", 00012 "target.base1_2": "v_base1_2_b2", 00013 "target.base1_3": "v_base1_3_b1", 00014 "target.derived1": "v_derived1_d1", 00015 "target.derived2": "v_derived2_f", 00016 "target.base2_1": "v_base2_1_f", 00017 "target.base2_2": "v_base2_2_b2", 00018 "target.f1_1": "v_f1_1_f_override", 00019 "target.f1_2": "v_f1_2_f" 00020 }, 00021 "b2": { 00022 "desc": "another single inheritance test", 00023 "target.base1_1": "v_base1_1_b1", 00024 "target.base1_2": "v_base1_2_b2", 00025 "target.base1_3": "v_base1_3_b1", 00026 "target.base2_1": "v_base2_1_b2", 00027 "target.base2_2": "v_base2_2_b2" 00028 } 00029 } 00030
Generated on Tue Jul 12 2022 11:02:54 by
