$ mkdir -p /tmp/pio
$ cd /tmp/pio
$ virtualenv .
$ source bin/activate
$ pip install -U platformio
$ git clone https://github.com/meshtastic/firmware.git --recurse-submodules # pull source code
$ cd firmware
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package copy_vs_append | |
| import ( | |
| "testing" | |
| ) | |
| func TestCopy(t *testing.T) { | |
| y := doCopy(true, false) | |
| if len(y) != 1000 { | |
| t.Fatalf("Expected len(y) to be 1000 but was %d", len(y)) |