@@ -1480,6 +1480,8 @@ fn precise_yanked_multiple_presence() {
1480
1480
1481
1481
#[ cargo_test]
1482
1482
fn report_behind ( ) {
1483
+ Package :: new ( "pre" , "1.0.0-alpha.0" ) . publish ( ) ;
1484
+ Package :: new ( "pre" , "1.0.0-alpha.1" ) . publish ( ) ;
1483
1485
Package :: new ( "breaking" , "0.1.0" ) . publish ( ) ;
1484
1486
Package :: new ( "breaking" , "0.2.0" ) . publish ( ) ;
1485
1487
Package :: new ( "breaking" , "0.2.1-alpha.0" ) . publish ( ) ;
@@ -1492,6 +1494,7 @@ fn report_behind() {
1492
1494
1493
1495
[dependencies]
1494
1496
breaking = "0.1"
1497
+ pre = "=1.0.0-alpha.0"
1495
1498
"# ,
1496
1499
)
1497
1500
. file ( "src/lib.rs" , "" )
@@ -1505,6 +1508,7 @@ fn report_behind() {
1505
1508
"\
1506
1509
[UPDATING] `dummy-registry` index
1507
1510
[UPDATING] breaking v0.1.0 -> v0.1.1 (latest: v0.2.0)
1511
+ [NOTE] Pass `--verbose` to see 1 unchanged dependencies behind latest
1508
1512
[WARNING] not updating lockfile due to dry run
1509
1513
" ,
1510
1514
)
@@ -1515,6 +1519,7 @@ fn report_behind() {
1515
1519
"\
1516
1520
[UPDATING] `dummy-registry` index
1517
1521
[UPDATING] breaking v0.1.0 -> v0.1.1 (latest: v0.2.0)
1522
+ [UNCHANGED] pre v1.0.0-alpha.0 (latest: v1.0.0-alpha.1)
1518
1523
[WARNING] not updating lockfile due to dry run
1519
1524
" ,
1520
1525
)
@@ -1526,7 +1531,7 @@ fn report_behind() {
1526
1531
. with_stderr (
1527
1532
"\
1528
1533
[UPDATING] `dummy-registry` index
1529
- [NOTE] Pass `--verbose` to see 1 unchanged dependencies behind latest
1534
+ [NOTE] Pass `--verbose` to see 2 unchanged dependencies behind latest
1530
1535
[WARNING] not updating lockfile due to dry run
1531
1536
" ,
1532
1537
)
@@ -1537,6 +1542,7 @@ fn report_behind() {
1537
1542
"\
1538
1543
[UPDATING] `dummy-registry` index
1539
1544
[UNCHANGED] breaking v0.1.1 (latest: v0.2.0)
1545
+ [UNCHANGED] pre v1.0.0-alpha.0 (latest: v1.0.0-alpha.1)
1540
1546
[WARNING] not updating lockfile due to dry run
1541
1547
" ,
1542
1548
)
0 commit comments