projects
/
project
/
uci.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
remove internal usage of redundant uci_ptr.last
[project/uci.git]
/
tests
/
cram
/
lua
/
test_cases
/
changes_doesnt_leak.lua
1
local A = assert
2
local c = uci.cursor(os.getenv("CONFIG_DIR"))
3
4
A(c:set("network", "lan", "dns", {
5
"ns1.king.banik.cz",
6
"ns2.openwrt.org",
7
}))
8
9
local changes = c:changes()
10
A(changes.network.lan.dns[1] == "ns1.king.banik.cz")
11
A(changes.network.lan.dns[2] == "ns2.openwrt.org")