mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
all: Fix spelling mistakes based on codespell check.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -30,6 +30,6 @@ fbd.blit(fbc, 0, 0, -1, palette)
|
||||
|
||||
print(fbd.pixel(0, 0) == fg)
|
||||
print(fbd.pixel(7, 7) == fg)
|
||||
print(fbd.pixel(8, 8) == 0) # Ouside blit
|
||||
print(fbd.pixel(8, 8) == 0) # Outside blit
|
||||
print(fbd.pixel(0, 1) == bg)
|
||||
print(fbd.pixel(1, 0) == bg)
|
||||
|
||||
@@ -13,7 +13,7 @@ desc = {
|
||||
# uctypes.NATIVE is default
|
||||
print(uctypes.sizeof(desc) == uctypes.sizeof(desc, uctypes.NATIVE))
|
||||
|
||||
# Here we assume that that we run on a platform with convential ABI
|
||||
# Here we assume that that we run on a platform with conventional ABI
|
||||
# (which rounds up structure size based on max alignment). For platforms
|
||||
# where that doesn't hold, this tests should be just disabled in the runner.
|
||||
print(uctypes.sizeof(desc, uctypes.NATIVE) > uctypes.sizeof(desc, uctypes.LITTLE_ENDIAN))
|
||||
|
||||
@@ -125,7 +125,7 @@ assert edge_case(MODULO_HALF - 1, -100) == diff
|
||||
|
||||
# We expect diff to be always positive, per the definition of heappop() which should return
|
||||
# the smallest value.
|
||||
# This is the edge case where this invariant breaks, due to assymetry of two's-complement
|
||||
# This is the edge case where this invariant breaks, due to asymmetry of two's-complement
|
||||
# range - there's one more negative integer than positive, so heappushing values like below
|
||||
# will then make ticks_diff() return the minimum negative value. We could make heappop
|
||||
# return them in a different order, but ticks_diff() result would be the same. Conclusion:
|
||||
|
||||
Reference in New Issue
Block a user